Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function __construct(array $config = [])
 {
     if (Configure::read('debug')) {
         Debugger::checkSecurityKeys();
     }
     parent::config($config);
 }
 /**
  * Constructor
  *
  * @param array $config configuration options for this object. Requires the
  * `hashers` key to be present in the array with a list of other hashers to be
  * used
  */
 public function __construct(array $config = array())
 {
     parent::__construct($config);
     foreach ($this->_config['hashers'] as $hasher) {
         $this->_hashers[] = PasswordHasherFactory::build($hasher);
     }
 }
 /**
  * Constructor
  *
  * @param array $config configuration options for this object. Requires the
  * `hashers` key to be present in the array with a list of other hashers to be
  * used
  */
 public function __construct(array $config = [])
 {
     parent::__construct($config);
     foreach ($this->_config['hashers'] as $key => $hasher) {
         if (!is_string($hasher)) {
             $hasher += ['className' => $key];
         }
         $this->_hashers[] = PasswordHasherFactory::build($hasher);
     }
 }
Пример #4
0
 public function __construct(array $config = [])
 {
     parent::__construct($config);
 }