Newscoop\Form\Element\OldHash::__construct PHP 메소드

__construct() 공개 메소드

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
리턴 void
    public function __construct($spec, $options = null)
    {
        parent::__construct($spec, $options);
        $this->setAllowEmpty(false)->setRequired(true)->initCsrfValidator();
    }