From dc75287f91686989540432937126529640e7807c Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 16:31:22 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 1cd3814b..61f02519 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -173,10 +173,7 @@ class Loader extends BaseObject $replace = Snowflake::getDi()->getReflect($this->explodeFileName($path, $namespace)); - var_dump($replace->getName()); - var_dump($replace->getAttributes(Target::class)); - - if (empty($replace) || !$replace->getAttributes(Target::class)) { + if (empty($replace) || count($replace->getAttributes(Target::class)) < 1) { return; } $this->appendFileToDirectory($path->getRealPath(), $replace->getName());