add clear

This commit is contained in:
as2252258@163.com
2019-12-12 12:04:25 +08:00
parent 4ed83cb6d8
commit 6677193b35
+5 -1
View File
@@ -77,10 +77,14 @@ class Container
/** /**
* @param $name * @param $name
* @return mixed * @return mixed|object|ReflectionClass
* @throws ReflectionException
*/ */
public function get($name) public function get($name)
{ {
if (!isset($this->container[$name])) {
return $this->createObject($name);
}
return $this->container[$name]; return $this->container[$name];
} }