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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user