变更
This commit is contained in:
@@ -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 $interface
|
||||||
* @param string $class
|
* @param string $class
|
||||||
|
|||||||
Reference in New Issue
Block a user