From aa598cfb4fb7a35f5239342ed1772ad57ebc1ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 27 Feb 2022 18:35:58 +0800 Subject: [PATCH] modify plugin name --- function.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/function.php b/function.php index 71a266c9..99d2a2af 100644 --- a/function.php +++ b/function.php @@ -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];