Nette\Forms\Controls\CsrfProtection::__construct PHP Method

__construct() public method

public __construct ( $message )
    public function __construct($message)
    {
        parent::__construct();
        $this->setOmitted()->setRequired()->addRule(self::PROTECTION, $message);
        $this->monitor(Nette\Application\UI\Presenter::class);
    }