App\Controllers\Admin\BaseController::csrf PHP 메소드

csrf() 보호된 메소드

protected csrf ( $req )
    protected function csrf($req)
    {
        $this->data['csrf'] = new \stdClass();
        $this->data['csrf']->nameKey = $this->csrf->getTokenNameKey();
        $this->data['csrf']->valueKey = $this->csrf->getTokenValueKey();
        $this->data['csrf']->name = $req->getAttribute('csrf_name');
        $this->data['csrf']->value = $req->getAttribute('csrf_value');
    }