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