This commit is contained in:
2021-01-19 18:02:38 +08:00
parent 293042cce5
commit 215d2c6772
+5 -5
View File
@@ -33,11 +33,11 @@ class DatabasesProviders extends Providers
$event->on(Event::SERVER_WORKER_START, [$this, 'createPool']); $event->on(Event::SERVER_WORKER_START, [$this, 'createPool']);
$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_WORKER_START, function () {
// $attributes = Snowflake::app()->getAttributes(); $attributes = Snowflake::app()->getAttributes();
// $attributes->readControllers(CONTROLLER_PATH, 'App\Models', 'models'); $attributes->readControllers(CONTROLLER_PATH, 'App\Models', 'models');
// }); });
} }