This commit is contained in:
2021-08-04 16:57:28 +08:00
parent 2bbf422bb2
commit 49ffb1386e
+5 -5
View File
@@ -63,11 +63,11 @@ class HTTPServerListener extends Abstracts\Server
*/ */
public function init() public function init()
{ {
// $exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class); $exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class);
// if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) { if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {
// $exceptionHandler = ExceptionHandlerDispatcher::class; $exceptionHandler = ExceptionHandlerDispatcher::class;
// } }
// $this->exceptionHandler = Snowflake::getDi()->get($exceptionHandler); $this->exceptionHandler = Snowflake::getDi()->get($exceptionHandler);
} }