This commit is contained in:
2021-03-05 17:05:12 +08:00
parent 979b97058e
commit 04ad150bba
+2 -5
View File
@@ -463,13 +463,10 @@ class Server extends HttpService
{
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_WORKER_START, function () {
router()->loadRouterSetting();
$annotation = Snowflake::app()->getAttributes();
$router = Snowflake::app()->getRouter();
$annotation->instanceDirectoryFiles(CONTROLLER_PATH);
$router->loadRouterSetting();
});
}