From b7fe54451cc4ba20232fcfd901784c87ceae8154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 27 Feb 2022 18:29:57 +0800 Subject: [PATCH] modify plugin name --- function.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/function.php b/function.php index 2743592e..a4282004 100644 --- a/function.php +++ b/function.php @@ -260,8 +260,9 @@ if (!function_exists('injectRuntime')) { foreach ($attribute as $item) { $item = $item->newInstance(); - - echo $class, ' ', $method, ' ', $item::class, PHP_EOL; + if ($class == 'app\Controller\SiteController') { + echo $class, ' ', $method, ' ', $item::class, PHP_EOL; + } if ($item instanceof Route) { $router[] = [$item, $class, $method];