改名
This commit is contained in:
@@ -16,6 +16,7 @@ use Console\ConsoleProviders;
|
|||||||
use Database\DatabasesProviders;
|
use Database\DatabasesProviders;
|
||||||
use Exception;
|
use Exception;
|
||||||
use HttpServer\Command;
|
use HttpServer\Command;
|
||||||
|
use HttpServer\Http\Response;
|
||||||
use HttpServer\ServerProviders;
|
use HttpServer\ServerProviders;
|
||||||
use Snowflake\Abstracts\BaseApplication;
|
use Snowflake\Abstracts\BaseApplication;
|
||||||
use Snowflake\Abstracts\Config;
|
use Snowflake\Abstracts\Config;
|
||||||
@@ -144,9 +145,9 @@ class Application extends BaseApplication
|
|||||||
if (!($class instanceof Command)) {
|
if (!($class instanceof Command)) {
|
||||||
scan_directory(directory('app'), 'App');
|
scan_directory(directory('app'), 'App');
|
||||||
}
|
}
|
||||||
$data = response()->getBuilder($manager->execCommand($class));
|
$data = di(Response::class)->getBuilder($manager->execCommand($class));
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$data = response()->getBuilder(logger()->exception($exception));
|
$data = di(Response::class)->getBuilder(logger()->exception($exception));
|
||||||
} finally {
|
} finally {
|
||||||
print_r($data);
|
print_r($data);
|
||||||
Timer::clearAll();
|
Timer::clearAll();
|
||||||
|
|||||||
Reference in New Issue
Block a user