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);
}
+1 -1
View File
@@ -146,7 +146,7 @@ class Application extends BaseApplication
}
$data = response()->getBuilder($manager->execCommand($class));
} catch (\Throwable $exception) {
$data = logger()->exception($exception);
$data = response()->getBuilder(logger()->exception($exception));
} finally {
print_r($data);
Timer::clearAll();