__construct() public method

Creates session namespace for CSRF token, and adds validator for CSRF token.
public __construct ( string | array | Zend_Config $spec, array | Zend_Config $options = null ) : void
$spec string | array | Zend_Config
$options array | Zend_Config
return void
示例#1
0
 /**
  * Constructor that checks if an adapter isset
  *
  * @param $spec
  * @param $options
  */
 public function __construct($spec, $options = null)
 {
     if (isset($options['adapter'])) {
         $this->setAdapter($options['adapter']);
         unset($options['adapter']);
         //Else the option is taken into account when constructing parent, duh..
     }
     parent::__construct($spec, $options);
 }