This commit is contained in:
as2252258@163.com
2021-04-08 01:48:53 +08:00
parent bf42b28760
commit 542e5cbb56
+1 -1
View File
@@ -159,7 +159,7 @@ class Loader extends BaseObject
}
$replace = Snowflake::getDi()->getReflect($this->explodeFileName($path, $namespace));
if (!$replace->getAttributes(Target::class)) {
if (empty($replace) || !$replace->getAttributes(Target::class)) {
return;
}
$this->appendFileToDirectory($path->getRealPath(), $replace->getName());