This commit is contained in:
as2252258@163.com
2021-08-09 02:02:12 +08:00
parent b42be92f19
commit 37680e63f5
+2 -2
View File
@@ -40,8 +40,8 @@ class LocalService extends Component
if (isset($this->_components[$name])) {
return $this->_components[$name];
}
if (isset($this->_definitions[$name])) {
$definition = $this->_definitions[$name];
if (isset($this->_definition[$name])) {
$definition = $this->_definition[$name];
if (is_object($definition) && !$definition instanceof \Closure) {
return $this->_components[$name] = $definition;
}