This commit is contained in:
2021-08-04 16:38:48 +08:00
parent 1b0df626c4
commit 98ada1938e
+1 -1
View File
@@ -64,7 +64,7 @@ class HTTPServerListener extends Abstracts\Server
*/
public function init()
{
$exceptionHandler = Config::get('exception.http', null);
$exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class);
if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {
$exceptionHandler = ExceptionHandlerDispatcher::class;
}