public function isServiceLoaded(string $serviceName): bool {
        if($this->serviceExists($serviceName)) {
            if(in_array($serviceName, $this->getSelfReferenceNames()))
                return true;

            /** @var ContainerInterface $container */
            $container = $this->serviceData[$serviceName];
            return $container->isInstanceLoaded();
        }
        return false;
    }
public function isServiceLoaded(string $serviceName): bool {
        if($this->serviceExists($serviceName)) {
            if(in_array($serviceName, $this->getSelfReferenceNames()))
                return true;

            /** @var ContainerInterface $container */
            $container = $this->serviceData[$serviceName];
            return $container->isInstanceLoaded();
        }
        return false;
    }
public function isServiceLoaded ( string $ serviceName ) : bool { if ( $ this -> serviceExists ( $ serviceName ) ) { if ( in_array ( $ serviceName , $ this -> getSelfReferenceNames ( ) ) ) return true ; /** @var ContainerInterface $container */ $ container = $ this -> serviceData [ $ serviceName ] ; return $ container -> isInstanceLoaded ( ) ; } return false ; }
Looks, if a service with the given name is available and already is loaded.
@param string $serviceName
@return bool
@see ServiceManager::serviceExists()
Looks if a service with the given name is available and already is loaded .