1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 17:27:16 +02:00

[feature/passwords] Pass config via service container to driver helper

This will get rid of the global $config in the driver helper

PHPBB3-11610
This commit is contained in:
Marc Alexander
2013-09-28 12:42:11 +02:00
parent de087d537e
commit 3ebff0a960
3 changed files with 23 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase
// Prepare dependencies for manager and driver
$config = new \phpbb\config\config(array());
$driver_helper = new phpbb\passwords\driver\helper;
$driver_helper = new phpbb\passwords\driver\helper($config);
$this->passwords_drivers = array(
'passwords.driver.bcrypt' => new phpbb\passwords\driver\bcrypt($config, $driver_helper),