App\Controllers\Admin\BaseController::csrf PHP Method

csrf() protected method

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');
    }