改名
This commit is contained in:
@@ -138,9 +138,7 @@ class Loader extends BaseObject
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$replace = $this->getReflect($path, $namespace);
|
$replace = $this->getReflect($path, $namespace);
|
||||||
if (empty($replace) || count($replace->getAttributes(Target::class)) < 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$this->appendFileToDirectory($path->getRealPath(), $replace->getName());
|
$this->appendFileToDirectory($path->getRealPath(), $replace->getName());
|
||||||
|
|
||||||
static::$_classes[] = $replace->getName();
|
static::$_classes[] = $replace->getName();
|
||||||
@@ -177,6 +175,7 @@ class Loader extends BaseObject
|
|||||||
if (!str_starts_with($key, $path)) {
|
if (!str_starts_with($key, $path)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
unset(static::$_directory[$key]);
|
||||||
foreach ($_path as $item) {
|
foreach ($_path as $item) {
|
||||||
$paths[$key] = $item;
|
$paths[$key] = $item;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -641,9 +641,6 @@ class Router extends HttpService implements RouterInterface
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
foreach ($attribute as $item) {
|
foreach ($attribute as $item) {
|
||||||
if ($item instanceof Route) {
|
|
||||||
var_dump($item->uri . '::' . $item->method);
|
|
||||||
}
|
|
||||||
$item->execute($instance, $method);
|
$item->execute($instance, $method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user