This commit is contained in:
2023-04-16 00:59:31 +08:00
parent 43ce6b3486
commit b8d7e7052f
+14
View File
@@ -88,6 +88,20 @@ class Container implements ContainerInterface
}
/**
* @param string $id
* @return void
* @throws ReflectionException
*/
public function parse(string $id): void
{
if (isset($this->_singletons[$id])) {
return;
}
$this->make($id);
}
/**
* @param string $interface
* @param string $class