add clear
This commit is contained in:
+5
-1
@@ -77,10 +77,14 @@ class Container
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @return mixed
|
||||
* @return mixed|object|ReflectionClass
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function get($name)
|
||||
{
|
||||
if (!isset($this->container[$name])) {
|
||||
return $this->createObject($name);
|
||||
}
|
||||
return $this->container[$name];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user