From d7a5bf7546bca152866d9b94d5b594f8dbb1c0eb Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Tue, 13 Apr 2021 01:48:11 -0400 Subject: [PATCH] Remove redundant class --- .../Middleware/ExecuteToFrontend.php | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/Foundation/ErrorHandling/Middleware/ExecuteToFrontend.php 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