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];