eee
This commit is contained in:
@@ -99,9 +99,7 @@ class OnRequest implements OnRequestInterface
|
|||||||
$PsrRequest = $this->initPsr7RequestAndPsr7Response($request);
|
$PsrRequest = $this->initPsr7RequestAndPsr7Response($request);
|
||||||
$dispatcher = $this->router->query($request->server['path_info'], $request->getMethod());
|
$dispatcher = $this->router->query($request->server['path_info'], $request->getMethod());
|
||||||
|
|
||||||
$middleware = $this->middlewareManager->get($dispatcher->getClass(), $dispatcher->getMethod());
|
$PsrResponse = (new HttpRequestHandler($dispatcher->getMiddlewares(), $dispatcher))->handle($PsrRequest);
|
||||||
|
|
||||||
$PsrResponse = (new HttpRequestHandler($middleware, $dispatcher))->handle($PsrRequest);
|
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
$PsrResponse = $this->exception->emit($throwable, di(ConstrictResponse::class));
|
$PsrResponse = $this->exception->emit($throwable, di(ConstrictResponse::class));
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user