改名
This commit is contained in:
@@ -76,21 +76,18 @@ class Middleware
|
|||||||
if (empty($annotation)) {
|
if (empty($annotation)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var_export($annotation);
|
foreach ($annotation as $name => $attribute) {
|
||||||
foreach ($annotation as $name => $_attribute) {
|
if ($attribute instanceof Interceptor) {
|
||||||
foreach ($_attribute as $attribute) {
|
$node->addInterceptor($attribute->interceptor);
|
||||||
if ($attribute instanceof Interceptor) {
|
}
|
||||||
$node->addInterceptor($attribute->interceptor);
|
if ($attribute instanceof After) {
|
||||||
}
|
$node->addAfter($attribute->after);
|
||||||
if ($attribute instanceof After) {
|
}
|
||||||
$node->addAfter($attribute->after);
|
if ($attribute instanceof RMiddleware) {
|
||||||
}
|
$node->addMiddleware($attribute->middleware);
|
||||||
if ($attribute instanceof RMiddleware) {
|
}
|
||||||
$node->addMiddleware($attribute->middleware);
|
if ($attribute instanceof Limits) {
|
||||||
}
|
$node->addLimits($attribute->limits);
|
||||||
if ($attribute instanceof Limits) {
|
|
||||||
$node->addLimits($attribute->limits);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user