改名
This commit is contained in:
@@ -152,7 +152,7 @@ class Loader extends BaseObject
|
|||||||
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
|
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
|
||||||
{
|
{
|
||||||
$class = $this->explodeFileName($path, $namespace);
|
$class = $this->explodeFileName($path, $namespace);
|
||||||
if (!class_exists($class)) {
|
if (!class_exists($class) && !interface_exists($class)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return Kiri::getDi()->getReflect($class);
|
return Kiri::getDi()->getReflect($class);
|
||||||
|
|||||||
Reference in New Issue
Block a user