diff --git a/src/Foundation/ErrorHandling/Middleware/ExecuteToFrontend.php b/src/Foundation/ErrorHandling/Middleware/ExecuteToFrontend.php deleted file mode 100644 index 3cd7d3df8..000000000 --- a/src/Foundation/ErrorHandling/Middleware/ExecuteToFrontend.php +++ /dev/null @@ -1,31 +0,0 @@ -handlerFactory = $handlerFactory; - } - - public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface - { - $error = $request->getAttribute('error'); - - $contentClass = $error->contentClass(); - $controller = $this->handlerFactory->toFrontend('forum', new $contentClass); - - return $controller($request, [])->withStatus($error->getStatusCode()); - } -} \ No newline at end of file