This commit is contained in:
2021-10-28 17:11:20 +08:00
parent b68fc5de60
commit 9269a1a23e
4 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ class Loader extends BaseObject
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
{
$class = $this->explodeFileName($path, $namespace);
if (!class_exists($class) && !interface_exists($class)) {
if (!class_exists($class)) {
return null;
}
return Kiri::getDi()->getReflect($class);
+1 -1
View File
@@ -23,7 +23,7 @@ use Kiri\Kiri;
*/
public function execute(mixed $class, mixed $method = ''): mixed
{
Kiri::getDi()->mapping($class, $this->class);
Kiri::getDi()->mapping($this->class, $class);
return parent::execute($class, $method);
}