改名
This commit is contained in:
@@ -34,7 +34,7 @@ class DatabasesProviders extends Providers
|
|||||||
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
|
$event->on(Event::SERVER_TASK_START, [$this, 'createPool']);
|
||||||
|
|
||||||
$event = Snowflake::app()->getEvent();
|
$event = Snowflake::app()->getEvent();
|
||||||
$event->on(Event::SERVER_WORKER_START, function () {
|
$event->on(Event::SERVER_MANAGER_START, function () {
|
||||||
$attributes = Snowflake::app()->getAttributes();
|
$attributes = Snowflake::app()->getAttributes();
|
||||||
$attributes->readControllers(MODEL_PATH, 'App\Models', 'models');
|
$attributes->readControllers(MODEL_PATH, 'App\Models', 'models');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user