From 3d2d285734398e474ea4c63690cf8b69403a2be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 18:23: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 --- Annotation/Annotation.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 589921da..978284d8 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -139,17 +139,17 @@ class Annotation extends Component private function resolveAnnotations($method, $alias, $object): array { $attributes = $method->getAttributes(); + if ($alias == 'models') { + var_dump($method, $attributes); + } + if (count($attributes) < 1) { return []; } $names = []; foreach ($attributes as $attribute) { - $instance = $this->instance($attribute); - if ($instance instanceof Get) { - var_dump($instance); - } - $names[$attribute->getName()] = $instance; + $names[$attribute->getName()] = $this->instance($attribute); } $tmp['handler'] = [$object, $method->getName()];