改名
This commit is contained in:
@@ -28,8 +28,10 @@ class LocalService extends Component
|
|||||||
unset($this->_components[$name]);
|
unset($this->_components[$name]);
|
||||||
|
|
||||||
$this->_definition[$name] = $define;
|
$this->_definition[$name] = $define;
|
||||||
|
if (is_object($define) || $define instanceof \Closure) {
|
||||||
$this->_components[$name] = $define;
|
$this->_components[$name] = $define;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user