This commit is contained in:
as2252258@163.com
2021-04-24 21:12:04 +08:00
parent 70e945ce86
commit d087afd8db
-3
View File
@@ -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;