This commit is contained in:
2021-08-04 15:54:38 +08:00
parent d5591b8d42
commit 4a861f18e8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ class HTTPServerListener extends Abstracts\Server
{
$exceptionHandler = Config::get('exception.http', null);
if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {
$exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class);
$exceptionHandler = ExceptionHandlerDispatcher::class;
}
$this->exceptionHandler = $exceptionHandler;
$this->exceptionHandler = Snowflake::getDi()->get($exceptionHandler);
}