This commit is contained in:
2021-08-03 12:39:48 +08:00
parent c1c4f6c928
commit a1ee256cf5
+1 -6
View File
@@ -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);
}