From c361c03ae5ff4d4828e1f28015447f69d89a4d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 4 Aug 2021 15:52:01 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Server/HTTPServerListener.php b/Server/HTTPServerListener.php index 38662a74..2affb405 100644 --- a/Server/HTTPServerListener.php +++ b/Server/HTTPServerListener.php @@ -56,7 +56,6 @@ class HTTPServerListener extends Abstracts\Server public ExceptionHandlerInterface $exceptionHandler; - /** * @throws ReflectionException * @throws ConfigException @@ -65,12 +64,10 @@ class HTTPServerListener extends Abstracts\Server public function init() { $exceptionHandler = Config::get('exception.http', null); - var_dump($exceptionHandler); - if (!($exceptionHandler instanceof ExceptionHandlerInterface)){ + if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) { $exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class); } $this->exceptionHandler = $exceptionHandler; - var_dump($this->exceptionHandler); }