modify plugin name
This commit is contained in:
+3
-6
@@ -255,9 +255,9 @@ if (!function_exists('injectRuntime')) {
|
|||||||
|
|
||||||
$methods = $target->getMethodsAttribute();
|
$methods = $target->getMethodsAttribute();
|
||||||
foreach ($methods as $method => $attribute) {
|
foreach ($methods as $method => $attribute) {
|
||||||
if (empty($attribute)) {
|
|
||||||
continue;
|
var_dump($class::class, $method);
|
||||||
}
|
|
||||||
foreach ($attribute as $item) {
|
foreach ($attribute as $item) {
|
||||||
$item = $item->newInstance();
|
$item = $item->newInstance();
|
||||||
if ($item instanceof Route) {
|
if ($item instanceof Route) {
|
||||||
@@ -266,9 +266,6 @@ if (!function_exists('injectRuntime')) {
|
|||||||
if (!method_exists($item, 'execute')) {
|
if (!method_exists($item, 'execute')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($item instanceof \Kiri\Annotation\Route\Middleware) {
|
|
||||||
var_dump($class::class, $method);
|
|
||||||
}
|
|
||||||
$item->execute($class, $method);
|
$item->execute($class, $method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user