改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user