This commit is contained in:
2021-03-05 16:57:12 +08:00
parent 2fedf6dd88
commit 4c49bbbdd0
5 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -109,9 +109,9 @@ class Application extends BaseApplication
{
try {
fire(Event::SERVER_BEFORE_START);
if (env('debug') === 'false') {
if (env('debug') == 'false') {
$annotation = Snowflake::app()->getAttributes();
$annotation->read(APP_PATH . 'app', 'App');
$annotation->read(directory('app'), 'App');
}
$manager = Snowflake::app()->get('console');
$manager->setParameters($argv);