public has ( string $id, boolean $checkInstance = false ) : boolean | ||
$id | string | component ID (e.g. `db`). |
$checkInstance | boolean | whether the method should check if the component is shared and instantiated. |
return | boolean | whether the locator has the specified component definition or has instantiated the component. |