From 2b2bd7a021f55480b609b2bf8b200b01573f5b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 2 Apr 2021 18:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Server.php | 18 ------------------ 1 file changed, 18 deletions(-) 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