|
|
@@ -46,7 +46,6 @@ class ErrorHandler implements PageErrorHandlerInterface
|
|
|
|
|
|
private OtWebsiteRepository $otWebsiteRepository;
|
|
|
private OtPageRepository $otPageRepository;
|
|
|
- private ControllerContext $controllerContext;
|
|
|
private RenderingContext $renderingContext;
|
|
|
private Request $request;
|
|
|
|
|
|
@@ -79,14 +78,6 @@ class ErrorHandler implements PageErrorHandlerInterface
|
|
|
$this->otPageRepository = $otPageRepository;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @param ControllerContext $controllerContext
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function injectControllerContext(ControllerContext $controllerContext) {
|
|
|
- $this->controllerContext = $controllerContext;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @param RenderingContext $renderingContext
|
|
|
* @return void
|
|
|
@@ -115,8 +106,7 @@ class ErrorHandler implements PageErrorHandlerInterface
|
|
|
array $reasons = []
|
|
|
): ResponseInterface {
|
|
|
$this->request->setControllerExtensionName('ot_templating');
|
|
|
- $this->controllerContext->setRequest($this->request);
|
|
|
- $this->renderingContext->setControllerContext($this->controllerContext);
|
|
|
+ $this->renderingContext->setRequest($this->request);
|
|
|
|
|
|
$this->view->setRenderingContext($this->renderingContext);
|
|
|
$this->view->setTemplateRootPaths([self::TEMPLATES_ROOT_PATHS]);
|