改名
This commit is contained in:
@@ -398,12 +398,7 @@ class Router extends HttpService implements RouterInterface
|
|||||||
private function loadNamespace($method): array
|
private function loadNamespace($method): array
|
||||||
{
|
{
|
||||||
$name = array_column($this->groupTacks, 'namespace');
|
$name = array_column($this->groupTacks, 'namespace');
|
||||||
if ($method == 'package' || $method == 'RECEIVE') {
|
array_unshift($name, $this->dir);
|
||||||
$dir = 'App\\Listener';
|
|
||||||
} else {
|
|
||||||
$dir = $this->dir;
|
|
||||||
}
|
|
||||||
array_unshift($name, $dir);
|
|
||||||
return array_filter($name);
|
return array_filter($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user