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); }