2011-06-09 05:13:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
2014-05-27 20:18:06 +02:00
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
2011-06-09 05:13:26 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-09-10 14:01:09 +02:00
|
|
|
class phpbb_mock_extension_manager extends \phpbb\extension\manager
|
2011-06-09 05:13:26 +02:00
|
|
|
{
|
2014-09-10 19:21:00 +02:00
|
|
|
public function __construct($phpbb_root_path, $extensions = array(), $container = null)
|
2011-06-09 05:13:26 +02:00
|
|
|
{
|
2017-04-16 16:36:13 +02:00
|
|
|
global $phpEx;
|
|
|
|
|
|
|
|
$lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx));
|
2011-07-13 08:22:27 -04:00
|
|
|
$this->phpbb_root_path = $phpbb_root_path;
|
2013-04-24 17:27:24 -05:00
|
|
|
$this->php_ext = 'php';
|
2011-06-09 05:13:26 +02:00
|
|
|
$this->extensions = $extensions;
|
2015-03-12 00:25:00 +01:00
|
|
|
$this->filesystem = new \phpbb\filesystem\filesystem();
|
2014-09-10 19:21:00 +02:00
|
|
|
$this->container = $container;
|
2017-02-10 02:09:18 +01:00
|
|
|
$this->config = new \phpbb\config\config(array());
|
2017-04-16 16:36:13 +02:00
|
|
|
$this->user = new \phpbb\user($lang,'\phpbb\datetime');
|
2011-06-09 05:13:26 +02:00
|
|
|
}
|
|
|
|
}
|