This commit is contained in:
2021-08-03 11:08:43 +08:00
parent 4b7f8bd9bc
commit 03137da76e
2 changed files with 2 additions and 6 deletions
+2 -3
View File
@@ -138,9 +138,7 @@ class Loader extends BaseObject
return;
}
$replace = $this->getReflect($path, $namespace);
if (empty($replace) || count($replace->getAttributes(Target::class)) < 1) {
return;
}
$this->appendFileToDirectory($path->getRealPath(), $replace->getName());
static::$_classes[] = $replace->getName();
@@ -177,6 +175,7 @@ class Loader extends BaseObject
if (!str_starts_with($key, $path)) {
continue;
}
unset(static::$_directory[$key]);
foreach ($_path as $item) {
$paths[$key] = $item;
}
-3
View File
@@ -641,9 +641,6 @@ class Router extends HttpService implements RouterInterface
continue;
}
foreach ($attribute as $item) {
if ($item instanceof Route) {
var_dump($item->uri . '::' . $item->method);
}
$item->execute($instance, $method);
}
}