From a1ee256cf532d4c7b07af724a6e8dc5b1d05869a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 3 Aug 2021 12:39:48 +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/Route/Router.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index b2e5f10f..356d0679 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -398,12 +398,7 @@ class Router extends HttpService implements RouterInterface private function loadNamespace($method): array { $name = array_column($this->groupTacks, 'namespace'); - if ($method == 'package' || $method == 'RECEIVE') { - $dir = 'App\\Listener'; - } else { - $dir = $this->dir; - } - array_unshift($name, $dir); + array_unshift($name, $this->dir); return array_filter($name); }