From 975e7a3cd04686dd9ac87705f4af3b27f3aa7f5e Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 18 Dec 2025 15:39:44 +0800 Subject: [PATCH] eee --- src/OnRequest.php | 2 +- src/Request.php | 4 ++-- src/Response.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OnRequest.php b/src/OnRequest.php index c47b444..fb1a92d 100644 --- a/src/OnRequest.php +++ b/src/OnRequest.php @@ -59,7 +59,7 @@ class OnRequest implements OnRequestInterface public function __construct(public ResponseInterface $response, DataGrip $dataGrip) { $this->responseEmitter = $this->response->emmit; - $exception = \config('exception.http'); + $exception = \config('servers.request.exception'); if (!in_array(ExceptionHandlerInterface::class, class_implements($exception))) { $exception = ExceptionHandlerDispatcher::class; } diff --git a/src/Request.php b/src/Request.php index 7c74df2..691f73e 100644 --- a/src/Request.php +++ b/src/Request.php @@ -33,8 +33,8 @@ class Request implements ServerRequestInterface */ public function __construct() { - $this->middlewares = \config('request.middlewares', []); - $this->exception = \config('request.exception', ExceptionHandlerDispatcher::class); + $this->middlewares = \config('servers.request.middlewares', []); + $this->exception = \config('servers.request.exception', ExceptionHandlerDispatcher::class); } diff --git a/src/Response.php b/src/Response.php index 1aaacaa..6bc3ca6 100644 --- a/src/Response.php +++ b/src/Response.php @@ -74,9 +74,9 @@ class Response implements ResponseInterface */ public function __construct() { - $this->contentType = \config('response.content-type', ContentType::JSON); - $this->headers = \config('response.headers', []); - $this->emmit = \config('response.emmit', SwooleHttpResponseEmitter::class); + $this->contentType = \config('servers.response.content-type', ContentType::JSON); + $this->headers = \config('servers.response.headers', []); + $this->emmit = \config('servers.response.emmit', SwooleHttpResponseEmitter::class); } /**