This commit is contained in:
2021-02-08 17:20:43 +08:00
parent fdc05fbbc1
commit cee76c69c6
2 changed files with 6 additions and 7 deletions
+2 -4
View File
@@ -104,11 +104,9 @@ class Middleware
*/
protected function annotation(Node $node): array
{
$middleWares = $this->annotation_limit($node);
$middleWares = $node->getMiddleWares();
$middleWares = $this->annotation_limit($node, $middleWares);
$middleWares = $this->annotation_interceptor($node, $middleWares);
foreach ($node->getMiddleWares() as $middleWare) {
$middleWares[] = $middleWare;
}
return $middleWares;
}