This commit is contained in:
2021-08-04 15:48:46 +08:00
parent b2bfe5781e
commit a32e8b6024
+2 -1
View File
@@ -64,7 +64,8 @@ class HTTPServerListener extends Abstracts\Server
*/ */
public function init() public function init()
{ {
$exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class); $exceptionHandler = Config::get('exception.http', null);
var_dump($exceptionHandler);
if (!($exceptionHandler instanceof ExceptionHandlerInterface)){ if (!($exceptionHandler instanceof ExceptionHandlerInterface)){
$exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class); $exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class);
} }