This commit is contained in:
2021-08-04 16:55:03 +08:00
parent c011c39bbc
commit 3ccc313fe5
+5 -5
View File
@@ -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);
}