This commit is contained in:
2021-01-19 19:29:52 +08:00
parent 68dd8a185c
commit fa74f62e9c
+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_WORKER_START, function () {
$event->on(Event::SERVER_MANAGER_START, function () {
$attributes = Snowflake::app()->getAttributes();
$attributes->readControllers(MODEL_PATH, 'App\Models', 'models');
});