di\Container hasSingleton()

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 $checkInstance is true, the method should return a value indicating whether the singleton has been instantiated.

doc_Yii
2016-10-30 17:01:05
Comments
Leave a Comment

Please login to continue.