modify plugin name

This commit is contained in:
2022-02-27 18:35:58 +08:00
parent 2b1f5f3804
commit aa598cfb4f
+3 -3
View File
@@ -256,13 +256,13 @@ 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;
}
foreach ($attribute as $item) {
$item = $item->newInstance();
if (str_contains($class, 'SiteController')) {
echo $class, ' ', $method, ' ', $item::class, PHP_EOL;
}
if ($item instanceof Route) {
$router[] = [$item, $class, $method];