mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
[feature/passwords] Use dependency injection for helper
This will now be used instead of manually loading the passwords helper instance in the passwords manager. PHPBB3-11610
This commit is contained in:
@@ -26,13 +26,16 @@ class phpbb_passwords_helper
|
||||
protected $manager;
|
||||
|
||||
/**
|
||||
* Construct a phpbb_passwords_helper object
|
||||
* Set the passwords manager instance
|
||||
*
|
||||
* @param phpbb_passwords_manager $manager Crypto manager object
|
||||
*/
|
||||
public function __construct($manager)
|
||||
public function set_manager(phpbb_passwords_manager $manager)
|
||||
{
|
||||
$this->manager = $manager;
|
||||
if ($this->manager === null)
|
||||
{
|
||||
$this->manager = $manager;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user