public hasSingleton ( string $class, boolean $checkInstance = false ) : boolean | ||
$class | string | class name, interface name or alias name |
$checkInstance | boolean | whether to check if the singleton has been instantiated. |
return | boolean | whether the given name corresponds to a registered singleton. If `$checkInstance` is true, the method should return a value indicating whether the singleton has been instantiated. |