Moved locale middleware to before the not found handler, so that it never gets executed otherwise

This commit is contained in:
Alejandro Celaya
2018-11-18 20:15:37 +01:00
parent e30f49a791
commit 09add5fbff
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -55,6 +55,6 @@ class NotFoundHandler implements RequestHandlerInterface
}
$notFoundTemplate = $request->getAttribute(self::NOT_FOUND_TEMPLATE, $this->defaultTemplate);
return new Response\HtmlResponse($this->renderer->render($notFoundTemplate, ['request' => $request]), $status);
return new Response\HtmlResponse($this->renderer->render($notFoundTemplate), $status);
}
}