modify plugin name
This commit is contained in:
+4
-3
@@ -255,14 +255,15 @@ if (!function_exists('injectRuntime')) {
|
|||||||
|
|
||||||
$methods = $target->getMethodsAttribute();
|
$methods = $target->getMethodsAttribute();
|
||||||
foreach ($methods as $method => $attribute) {
|
foreach ($methods as $method => $attribute) {
|
||||||
if (str_contains($class, 'SiteController')) {
|
// if (str_contains($class, 'SiteController')) {
|
||||||
echo $class, ' ', $method, ' ', var_export($attribute, 'true'), PHP_EOL;
|
// echo $class, ' ', $method, ' ', var_export($attribute, 'true'), PHP_EOL;
|
||||||
}
|
// }
|
||||||
/** @var ReflectionAttribute $item */
|
/** @var ReflectionAttribute $item */
|
||||||
foreach ($attribute as $item) {
|
foreach ($attribute as $item) {
|
||||||
if (!class_exists($item->getName())) {
|
if (!class_exists($item->getName())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
var_export($item);
|
||||||
$item = $item->newInstance();
|
$item = $item->newInstance();
|
||||||
if ($item instanceof Route) {
|
if ($item instanceof Route) {
|
||||||
$router[] = [$item, $class, $method];
|
$router[] = [$item, $class, $method];
|
||||||
|
|||||||
Reference in New Issue
Block a user