fix: [requestProcessor:genericProcessor] Make sure view builder knows about all request variables

pull/59/head
mokaddem 2021-06-12 12:11:57 +02:00
parent 14607962f8
commit a94a2ec672
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class GenericRequestProcessor
return $this->processingTemplate;
}
public function render($request=[])
public function render($request=[], Cake\Http\ServerRequest $serverRequest)
{
$processingTemplate = $this->getProcessingTemplate();
$viewVariables = $this->getViewVariables($request);
@ -73,6 +73,7 @@ class GenericRequestProcessor
->setClassName('Monad')
->setTemplate($processingTemplate);
$view = $builder->build($viewVariables);
$view->setRequest($serverRequest);
return $view->render();
}