hasSingleton() public method
Returns a value indicating whether the given name corresponds to a registered singleton.
public boolean hasSingleton ( $class, $checkInstance = false ) | ||
---|---|---|
$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 |
Please login to continue.