改名
This commit is contained in:
+18
-19
@@ -107,26 +107,25 @@ class Application extends BaseApplication
|
||||
*/
|
||||
public function start(Input $argv): void
|
||||
{
|
||||
// try {
|
||||
// fire(Event::SERVER_BEFORE_START);
|
||||
if (env('debug') == 'false') {
|
||||
$annotation = Snowflake::app()->getAttributes();
|
||||
$annotation->read(directory('app'), 'App');
|
||||
try {
|
||||
fire(Event::SERVER_BEFORE_START);
|
||||
if (env('debug') == 'false') {
|
||||
$annotation = Snowflake::app()->getAttributes();
|
||||
$annotation->read(directory('app'), 'App');
|
||||
}
|
||||
$manager = Snowflake::app()->get('console');
|
||||
$manager->setParameters($argv);
|
||||
$class = $manager->search();
|
||||
response()->send($manager->execCommand($class));
|
||||
} catch (\Throwable $exception) {
|
||||
response()->send(implode("\n", [
|
||||
'Msg: ' . $exception->getMessage(),
|
||||
'Line: ' . $exception->getLine(),
|
||||
'File: ' . $exception->getFile()
|
||||
]));
|
||||
} finally {
|
||||
Timer::clearAll();
|
||||
}
|
||||
$manager = Snowflake::app()->get('console');
|
||||
$manager->setParameters($argv);
|
||||
$class = $manager->search();
|
||||
response()->send($manager->execCommand($class));
|
||||
// } catch (\Throwable $exception) {
|
||||
// var_dump($exception);
|
||||
//// response()->send(implode("\n", [
|
||||
//// 'Msg: ' . $exception->getMessage(),
|
||||
//// 'Line: ' . $exception->getLine(),
|
||||
//// 'File: ' . $exception->getFile()
|
||||
//// ]));
|
||||
// } finally {
|
||||
// Timer::clearAll();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user