This commit is contained in:
2020-09-18 21:43:28 +08:00
parent b8816f3411
commit 32f8616955
+3 -1
View File
@@ -380,8 +380,10 @@ class Server extends Application
public function onLoadHttpHandler()
{
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_WORKER_START, function () {
$router = Snowflake::app()->getRouter();
$event->on(Event::SERVER_WORKER_START, [$router, 'loadRouterSetting']);
$router->loadRouterSetting();
});
}