From e01a1cbb7b6be0e20551881cf6f65c2b1ddcc9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 27 Feb 2022 18:29:31 +0800 Subject: [PATCH] modify plugin name --- function.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/function.php b/function.php index 40b0c982..2743592e 100644 --- a/function.php +++ b/function.php @@ -256,10 +256,13 @@ if (!function_exists('injectRuntime')) { $methods = $target->getMethodsAttribute(); foreach ($methods as $method => $attribute) { - echo $class, ' ', $method, PHP_EOL; foreach ($attribute as $item) { $item = $item->newInstance(); + + + echo $class, ' ', $method, ' ', $item::class, PHP_EOL; + if ($item instanceof Route) { $router[] = [$item, $class, $method]; } else {