From 882062a403750602408cf0210564d10abe413be3 Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 22 Nov 2023 17:07:11 +0800 Subject: [PATCH] eee --- Handler/OnRequest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Handler/OnRequest.php b/Handler/OnRequest.php index 9c658a6..3e5dbfd 100644 --- a/Handler/OnRequest.php +++ b/Handler/OnRequest.php @@ -63,18 +63,17 @@ class OnRequest implements OnRequestInterface /** * @param ResponseInterface $response - * @param RequestInterface $request * @param ContainerInterface $container * @param DataGrip $dataGrip * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @throws ReflectionException */ - public function __construct(public ResponseInterface $response, public RequestInterface $request, public ContainerInterface $container, + public function __construct(public ResponseInterface $response, public ContainerInterface $container, public DataGrip $dataGrip) { $this->responseEmitter = $this->response->emmit; - $exception = $this->request->exception; + $exception = \config('components.request.exception'); if (!in_array(ExceptionHandlerInterface::class, class_implements($exception))) { $exception = ExceptionHandlerDispatcher::class; }