From fa74f62e9ca8e2f004e132c2768b996539a0dbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 19:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/DatabasesProviders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/DatabasesProviders.php b/Database/DatabasesProviders.php index 8e2f9cf9..b495eddc 100644 --- a/Database/DatabasesProviders.php +++ b/Database/DatabasesProviders.php @@ -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'); });