This commit is contained in:
2021-02-22 18:12:36 +08:00
parent b06c8e3da1
commit 7deb1e9b03
2 changed files with 24 additions and 21 deletions
-21
View File
@@ -53,28 +53,7 @@ class Command extends \Console\Command
return 'shutdown success.';
}
$this->scan_system_annotation();
return $manager->start();
}
/**
* @throws ReflectionException
* @throws ComponentException
* @throws NotFindPropertyException
*/
public function scan_system_annotation()
{
$annotation = Snowflake::app()->getAttributes();
$annotation->readControllers(__DIR__ . '/../Console', 'Console', 'system');
$annotation->readControllers(__DIR__ . '/../Database', 'Database', 'system');
$annotation->readControllers(__DIR__ . '/../Gii', 'Gii', 'system');
$annotation->readControllers(__DIR__ . '/../HttpServer', 'HttpServer', 'system');
$annotation->readControllers(__DIR__ . '/../Kafka', 'Kafka', 'system');
$annotation->readControllers(__DIR__ . '/../System', 'Snowflake', 'system');
$annotation->readControllers(__DIR__ . '/../Validator', 'Validator', 'system');
}
}