From dd8b875a1f67f288ac8723ce9d263e02ec53ca4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 18:50:32 +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/Node.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index c80356c8..a69e6596 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -111,7 +111,6 @@ class Node extends HttpService protected function annotation(): array { $middleWares = $this->getMiddleWares(); - var_dump($middleWares); $middleWares = $this->annotation_limit($this, $middleWares); $middleWares = $this->annotation_interceptor($this, $middleWares); return $middleWares; @@ -326,6 +325,9 @@ class Node extends HttpService if (empty($annotation)) { return $this; } + if ($this->path == 'user/attributes') { + var_dump($annotation); + } foreach ($annotation as $name => $attribute) { if ($attribute instanceof \Annotation\Route\Interceptor) { $this->addInterceptor($attribute->interceptor);