改名
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user