From beb7a946787302456a5d870647c189534f87d6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:34:41 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 68302177..512721ec 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -9,6 +9,7 @@ use ReflectionClass; use ReflectionException; use ReflectionMethod; use Snowflake\Abstracts\Component; +use Snowflake\Exception\NotFindClassException; use Snowflake\Exception\NotFindPropertyException; use Snowflake\Snowflake; @@ -142,6 +143,7 @@ class Annotation extends Component */ private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object) { + var_dump($reflect->getName()); foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { if ($method->class != $class) { continue; @@ -151,8 +153,6 @@ class Annotation extends Component if (empty($tmp)) { continue; } - - var_dump($tmp); $this->_classes[$reflect->getName()][$method->getName()] = $tmp; } $this->resolveProperty($reflect, $object); @@ -198,6 +198,7 @@ class Annotation extends Component * @param string $class * @return ReflectionClass|null * @throws ReflectionException + * @throws NotFindClassException */ private function reflectClass(string $class): ?ReflectionClass {