aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/passwords/helper.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-09-22 21:17:30 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-09-22 21:17:30 +0200
commitf5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6 (patch)
treec77c4ea11f9947b1c2c50b3a517b05fa99de19d5 /phpBB/phpbb/passwords/helper.php
parent1970c69c8c9d6b898680aa3e94d5222c8f150d58 (diff)
downloadforums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar
forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.gz
forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.bz2
forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.xz
forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.zip
[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
Diffstat (limited to 'phpBB/phpbb/passwords/helper.php')
-rw-r--r--phpBB/phpbb/passwords/helper.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/phpbb/passwords/helper.php b/phpBB/phpbb/passwords/helper.php
index d91edb90a1..0ce1d3be45 100644
--- a/phpBB/phpbb/passwords/helper.php
+++ b/phpBB/phpbb/passwords/helper.php
@@ -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;
+ }
}
/**