mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12099] Remove config again
PHPBB3-12099
This commit is contained in:
parent
779d8a68ff
commit
b7e1959d56
12 changed files with 5 additions and 19 deletions
|
@ -300,7 +300,6 @@ services:
|
|||
- @symfony_request
|
||||
- @filesystem
|
||||
- @request
|
||||
- @config
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
- %core.adm_relative_path%
|
||||
|
|
|
@ -27,9 +27,6 @@ class path_helper
|
|||
/** @var \phpbb\request\request_interface */
|
||||
protected $request;
|
||||
|
||||
/** @var \phpbb\config\config */
|
||||
protected $config;
|
||||
|
||||
/** @var string */
|
||||
protected $phpbb_root_path;
|
||||
|
||||
|
@ -47,17 +44,16 @@ class path_helper
|
|||
*
|
||||
* @param \phpbb\symfony_request $symfony_request
|
||||
* @param \phpbb\filesystem $filesystem
|
||||
* @param \phpbb\request\request $request
|
||||
* @param \phpbb\config\config $config
|
||||
* @param \phpbb\request\request_interface $request
|
||||
* @param string $phpbb_root_path Relative path to phpBB root
|
||||
* @param string $php_ext PHP extension (php)
|
||||
* @param mixed $adm_relative_path Relative path admin path to adm/ root
|
||||
*/
|
||||
public function __construct(\phpbb\symfony_request $symfony_request, \phpbb\filesystem $filesystem, \phpbb\request\request $request, \phpbb\config\config $config, $phpbb_root_path, $php_ext, $adm_relative_path = null)
|
||||
public function __construct(\phpbb\symfony_request $symfony_request, \phpbb\filesystem $filesystem, \phpbb\request\request_interface $request, $phpbb_root_path, $php_ext, $adm_relative_path = null)
|
||||
{
|
||||
$this->symfony_request = $symfony_request;
|
||||
$this->filesystem = $filesystem;
|
||||
$this->request = $request;
|
||||
$this->config = $config;
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
$this->php_ext = $php_ext;
|
||||
$this->adm_relative_path = $adm_relative_path;
|
||||
|
|
|
@ -39,7 +39,6 @@ class phpbb_avatar_manager_test extends \phpbb_test_case
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
$config,
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
|
@ -27,7 +27,6 @@ class phpbb_controller_helper_route_test extends phpbb_test_case
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
|
@ -51,7 +51,6 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$this->phpbb_root_path,
|
||||
$this->phpEx
|
||||
),
|
||||
|
|
|
@ -30,10 +30,11 @@ class phpbb_build_url_test extends phpbb_test_case
|
|||
new phpbb_mock_request()
|
||||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
$phpbb_root_path,
|
||||
'php'
|
||||
);
|
||||
$phpbb_container->set('path_helper', $path_helper);
|
||||
$phpbb_container->set('path_helper', $phpbb_path_helper);
|
||||
}
|
||||
public function build_url_test_data()
|
||||
{
|
||||
|
|
|
@ -30,7 +30,6 @@ class phpbb_path_helper_test extends phpbb_test_case
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$this->phpbb_root_path,
|
||||
'php'
|
||||
);
|
||||
|
@ -161,7 +160,6 @@ class phpbb_path_helper_test extends phpbb_test_case
|
|||
$symfony_request,
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$this->phpbb_root_path,
|
||||
'php'
|
||||
);
|
||||
|
|
|
@ -64,7 +64,6 @@ class phpbb_security_redirect_test extends phpbb_security_test_base
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$this->phpbb_root_path,
|
||||
'php'
|
||||
);
|
||||
|
|
|
@ -144,7 +144,6 @@ Zeta test event in all',
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
|
@ -73,7 +73,6 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
|
@ -28,7 +28,6 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
|||
),
|
||||
new \phpbb\filesystem(),
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
|
@ -33,7 +33,6 @@ abstract class phpbb_session_test_case extends phpbb_database_test_case
|
|||
$symfony_request,
|
||||
$phpbb_filesystem,
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
new \phpbb\config\config(array()),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue