From 8f8544053283a39beda4c311419242c834a69393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:22:44 +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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index aaeaf461..589921da 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -4,6 +4,7 @@ namespace Annotation; +use Annotation\Model\Get; use ReflectionAttribute; use ReflectionClass; use ReflectionException; @@ -111,8 +112,6 @@ class Annotation extends Component foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { $tmp = $this->resolveAnnotations($method, $alias, $object); - var_dump($tmp); - $this->_classes[$reflect->getName()][$method->getName()] = $tmp; } } @@ -146,7 +145,11 @@ class Annotation extends Component $names = []; foreach ($attributes as $attribute) { - $names[$attribute->getName()] = $this->instance($attribute); + $instance = $this->instance($attribute); + if ($instance instanceof Get) { + var_dump($instance); + } + $names[$attribute->getName()] = $instance; } $tmp['handler'] = [$object, $method->getName()];