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 {