From 37979aa20cc874eb96a9ddade921fe15a518fe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:41:45 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 84297b39..3584587e 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -73,6 +73,7 @@ class Middleware [$controller, $action] = $node->handler; $attributes = Snowflake::app()->getAttributes(); $annotation = $attributes->getMethods(get_class($controller), $action); + var_dump($annotation); if (empty($annotation)) { return; } @@ -84,7 +85,6 @@ class Middleware $node->addAfter($attribute->after); } if ($attribute instanceof RMiddleware) { - var_dump($attribute->middleware); $node->addMiddleware($attribute->middleware); } if ($attribute instanceof Limits) {