From ca7218c97e5f79480f8d59a5ff9073801bc20fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:32:14 +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 --- Annotation/Annotation.php | 1 + HttpServer/Route/Middleware.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index caa3ff54..68302177 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -152,6 +152,7 @@ class Annotation extends Component continue; } + var_dump($tmp); $this->_classes[$reflect->getName()][$method->getName()] = $tmp; } $this->resolveProperty($reflect, $object); diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 897235fc..baa0c900 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -73,7 +73,6 @@ class Middleware [$controller, $action] = $node->handler; $attributes = Snowflake::app()->getAttributes(); $annotation = $attributes->getByClass(get_class($controller), $action); - var_dump($annotation); if (count($annotation) < 1) { return; }