From 49ffb1386e8c87f682a895aa5d7e283da5d77123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 4 Aug 2021 16:57:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/HTTPServerListener.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/HTTPServerListener.php b/Server/HTTPServerListener.php index 7e878101..a17317e1 100644 --- a/Server/HTTPServerListener.php +++ b/Server/HTTPServerListener.php @@ -63,11 +63,11 @@ class HTTPServerListener extends Abstracts\Server */ public function init() { -// $exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class); -// if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) { -// $exceptionHandler = ExceptionHandlerDispatcher::class; -// } -// $this->exceptionHandler = Snowflake::getDi()->get($exceptionHandler); + $exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class); + if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) { + $exceptionHandler = ExceptionHandlerDispatcher::class; + } + $this->exceptionHandler = Snowflake::getDi()->get($exceptionHandler); }