From 6d9926f6e56b499d9cf61c64873b0c54ac43579e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Middleware.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 1ad931ae..a23c40e1 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -76,8 +76,9 @@ class Middleware if (empty($annotation)) { return; } + var_dump($annotation, $action); foreach ($annotation as $name => $_attribute) { - foreach ($_attribute as $attribute){ + foreach ($_attribute as $attribute) { if ($attribute instanceof Interceptor) { $node->addInterceptor($attribute->interceptor); }