改名
This commit is contained in:
@@ -65,9 +65,9 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
{
|
{
|
||||||
$exceptionHandler = Config::get('exception.http', null);
|
$exceptionHandler = Config::get('exception.http', null);
|
||||||
if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {
|
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));
|
$data = response()->getBuilder($manager->execCommand($class));
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$data = logger()->exception($exception);
|
$data = response()->getBuilder(logger()->exception($exception));
|
||||||
} finally {
|
} finally {
|
||||||
print_r($data);
|
print_r($data);
|
||||||
Timer::clearAll();
|
Timer::clearAll();
|
||||||
|
|||||||
Reference in New Issue
Block a user