This commit is contained in:
2021-02-22 17:44:24 +08:00
parent 3b09b9a308
commit 2d1f83cf09
34 changed files with 732 additions and 222 deletions
+4 -3
View File
@@ -97,13 +97,14 @@ class Application extends BaseApplication
* @param Input $argv
* @return bool|string
* @throws Exception
* @throws NotFindClassException
* @throws \ReflectionException
*/
public function start(Input $argv): bool|string
{
$this->set('input', $argv);
try {
fire(Event::SERVER_BEFORE_START);
$this->set('input', $argv);
$manager = Snowflake::app()->get('console');
$manager->setParameters($argv);
$class = $manager->search();