This commit is contained in:
2021-01-19 19:33:48 +08:00
parent fa74f62e9c
commit f56fe0c1b4
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class DatabasesProviders extends Providers
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_MANAGER_START, function () {
$event->on(Event::SERVER_BEFORE_START, function () {
$attributes = Snowflake::app()->getAttributes();
$attributes->readControllers(MODEL_PATH, 'App\Models', 'models');
});