Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
di
ServiceLocator
clear
yii\di\ServiceLocator::clear PHP Method
ServiceLocator Class Documentation
Show file
Open project: yiisoft/yii2
clear()
public
method
Removes the component from the locator.
public
clear
(
string
$id
)
$id
string
the component ID
public function clear($id) { unset($this->_definitions[$id], $this->_components[$id]); }
ServiceLocator
__get
__isset
clear
get
getComponents
has
set
setComponents