From 2b1f5f3804015fc8b3f51e85bfd330731be931c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 27 Feb 2022 18:34:17 +0800 Subject: [PATCH] modify plugin name --- function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.php b/function.php index a4282004..71a266c9 100644 --- a/function.php +++ b/function.php @@ -260,7 +260,7 @@ if (!function_exists('injectRuntime')) { foreach ($attribute as $item) { $item = $item->newInstance(); - if ($class == 'app\Controller\SiteController') { + if (str_contains($class, 'SiteController')) { echo $class, ' ', $method, ' ', $item::class, PHP_EOL; }