This commit is contained in:
2021-03-02 13:49:53 +08:00
parent 66543b8274
commit dd6f64d87f
2 changed files with 9 additions and 11 deletions
+5 -7
View File
@@ -112,14 +112,12 @@ class Application extends BaseApplication
fire(Event::SERVER_BEFORE_START);
run(function () use ($argv) {
$this->set('input', $argv);
$this->set('input', $argv);
$manager = Snowflake::app()->get('console');
$manager->setParameters($argv);
$class = $manager->search();
response()->send($manager->execCommand($class));
});
$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(),