Nette\Forms\Controls\CsrfProtection::attached PHP 메소드

attached() 보호된 메소드

protected attached ( $parent )
    protected function attached($parent)
    {
        parent::attached($parent);
        if (!$this->session && $parent instanceof Nette\Application\UI\Presenter) {
            $this->session = $parent->getSession();
        }
    }