This commit is contained in:
as2252258@163.com
2021-04-24 20:48:59 +08:00
parent dd5e65b522
commit 70e945ce86
+3 -1
View File
@@ -173,7 +173,9 @@ 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;