[ticket/12099] Remove config again

PHPBB3-12099
This commit is contained in:
Joas Schilling 2014-05-07 23:22:53 +02:00 committed by Tristan Darricau
parent 779d8a68ff
commit b7e1959d56
12 changed files with 5 additions and 19 deletions

View file

@ -300,7 +300,6 @@ services:
- @symfony_request - @symfony_request
- @filesystem - @filesystem
- @request - @request
- @config
- %core.root_path% - %core.root_path%
- %core.php_ext% - %core.php_ext%
- %core.adm_relative_path% - %core.adm_relative_path%

View file

@ -27,9 +27,6 @@ class path_helper
/** @var \phpbb\request\request_interface */ /** @var \phpbb\request\request_interface */
protected $request; protected $request;
/** @var \phpbb\config\config */
protected $config;
/** @var string */ /** @var string */
protected $phpbb_root_path; protected $phpbb_root_path;
@ -47,17 +44,16 @@ class path_helper
* *
* @param \phpbb\symfony_request $symfony_request * @param \phpbb\symfony_request $symfony_request
* @param \phpbb\filesystem $filesystem * @param \phpbb\filesystem $filesystem
* @param \phpbb\request\request $request * @param \phpbb\request\request_interface $request
* @param \phpbb\config\config $config
* @param string $phpbb_root_path Relative path to phpBB root * @param string $phpbb_root_path Relative path to phpBB root
* @param string $php_ext PHP extension (php) * @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->symfony_request = $symfony_request;
$this->filesystem = $filesystem; $this->filesystem = $filesystem;
$this->request = $request; $this->request = $request;
$this->config = $config;
$this->phpbb_root_path = $phpbb_root_path; $this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext; $this->php_ext = $php_ext;
$this->adm_relative_path = $adm_relative_path; $this->adm_relative_path = $adm_relative_path;

View file

@ -39,7 +39,6 @@ class phpbb_avatar_manager_test extends \phpbb_test_case
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
$config,
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );

View file

@ -27,7 +27,6 @@ class phpbb_controller_helper_route_test extends phpbb_test_case
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );

View file

@ -51,7 +51,6 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$this->phpbb_root_path, $this->phpbb_root_path,
$this->phpEx $this->phpEx
), ),

View file

@ -30,10 +30,11 @@ class phpbb_build_url_test extends phpbb_test_case
new phpbb_mock_request() new phpbb_mock_request()
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'),
$phpbb_root_path, $phpbb_root_path,
'php' 'php'
); );
$phpbb_container->set('path_helper', $path_helper); $phpbb_container->set('path_helper', $phpbb_path_helper);
} }
public function build_url_test_data() public function build_url_test_data()
{ {

View file

@ -30,7 +30,6 @@ class phpbb_path_helper_test extends phpbb_test_case
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$this->phpbb_root_path, $this->phpbb_root_path,
'php' 'php'
); );
@ -161,7 +160,6 @@ class phpbb_path_helper_test extends phpbb_test_case
$symfony_request, $symfony_request,
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$this->phpbb_root_path, $this->phpbb_root_path,
'php' 'php'
); );

View file

@ -64,7 +64,6 @@ class phpbb_security_redirect_test extends phpbb_security_test_base
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$this->phpbb_root_path, $this->phpbb_root_path,
'php' 'php'
); );

View file

@ -144,7 +144,6 @@ Zeta test event in all',
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );

View file

@ -73,7 +73,6 @@ class phpbb_template_template_test_case extends phpbb_test_case
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );

View file

@ -28,7 +28,6 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
), ),
new \phpbb\filesystem(), new \phpbb\filesystem(),
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );

View file

@ -33,7 +33,6 @@ abstract class phpbb_session_test_case extends phpbb_database_test_case
$symfony_request, $symfony_request,
$phpbb_filesystem, $phpbb_filesystem,
$this->getMock('\phpbb\request\request'), $this->getMock('\phpbb\request\request'),
new \phpbb\config\config(array()),
$phpbb_root_path, $phpbb_root_path,
$phpEx $phpEx
); );