diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 8b2ce3f8..0ead7c2d 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -378,7 +378,6 @@ class Server extends HttpService $service = Snowflake::app()->get('rpc-service'); $service->instance($this->swoole); } - $this->onLoadHttpHandler(); return $this->swoole; } @@ -485,23 +484,6 @@ class Server extends HttpService } - /** - * Load router handler - * @throws Exception - */ - public function onLoadHttpHandler() - { - $event = Snowflake::app()->getEvent(); - $event->on(Event::SERVER_WORKER_START, function () { - $system = Snowflake::app(); - - $system->getRouter()->loadRouterSetting(); - - $system->getAnnotation()->instanceDirectoryFiles(APP_PATH); - }); - } - - /** * @param $type * @return string