From d087afd8dbbf982ed185d30655cc1ba0e2e91b09 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 21:12:04 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 67d57f7e..a2b81d38 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -173,9 +173,6 @@ class Loader extends BaseObject if ($path->getExtension() !== 'php') { return; } - if (str_starts_with($path->getRealPath(), __DIR__)) { - return; - } $replace = Snowflake::getDi()->getReflect($this->explodeFileName($path, $namespace)); if (empty($replace) || count($replace->getAttributes(Target::class)) < 1) { return;