1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/passwords] Pass phpbb_container to passwords helper

PHPBB3-11610
This commit is contained in:
Marc Alexander 2013-06-27 14:23:20 +02:00
parent e4a5aacf2a
commit ab068799b1
2 changed files with 9 additions and 2 deletions

View File

@ -25,14 +25,21 @@ class phpbb_crypto_helper
*/ */
protected $manager; protected $manager;
/**
* @var phpbb_container
*/
protected $container;
/** /**
* Construct a phpbb_crypto_helper object * Construct a phpbb_crypto_helper object
* *
* @param phpbb_crypto_manager $manager Crypto manager object * @param phpbb_crypto_manager $manager Crypto manager object
* @param phpbb_container $container phpBB container object
*/ */
public function __construct($manager) public function __construct($manager, $container)
{ {
$this->manager = $manager; $this->manager = $manager;
$this->container = $container;
} }
/** /**

View File

@ -96,7 +96,7 @@ class phpbb_crypto_manager
{ {
if ($this->helper === NULL) if ($this->helper === NULL)
{ {
$this->helper = new phpbb_crypto_helper($this); $this->helper = new phpbb_crypto_helper($this, $this->container);
} }
} }