modify plugin name

This commit is contained in:
2022-02-28 10:13:27 +08:00
parent aa598cfb4f
commit 1c5279f7c7
+4 -4
View File
@@ -255,15 +255,15 @@ if (!function_exists('injectRuntime')) {
$methods = $target->getMethodsAttribute();
foreach ($methods as $method => $attribute) {
if (str_contains($class, 'SiteController')) {
echo $class, ' ', $method, ' ', var_export($attribute, 'true'), PHP_EOL;
}
/** @var ReflectionAttribute $item */
foreach ($attribute as $item) {
if (!class_exists($item->getName())) {
continue;
}
$item = $item->newInstance();
if ($item instanceof Route) {
$router[] = [$item, $class, $method];
} else {