This commit is contained in:
2021-03-04 00:30:33 +08:00
parent 10b7d949db
commit 5d07b8def1
+1 -4
View File
@@ -76,9 +76,7 @@ class Middleware
if (empty($annotation)) { if (empty($annotation)) {
return; return;
} }
var_export($annotation); foreach ($annotation as $name => $attribute) {
foreach ($annotation as $name => $_attribute) {
foreach ($_attribute as $attribute) {
if ($attribute instanceof Interceptor) { if ($attribute instanceof Interceptor) {
$node->addInterceptor($attribute->interceptor); $node->addInterceptor($attribute->interceptor);
} }
@@ -93,7 +91,6 @@ class Middleware
} }
} }
} }
}
/** /**