public function getCredentialsByService($serviceName)
    {
        if (!in_array($serviceName, $this->getInitializedServices())) {
            throw new DomainException(
                sprintf("Credentials for service '%s' was not initialized", $serviceName)
            );
        }

        return $this->serviceCredentials[$serviceName];
    }
public function getCredentialsByService($serviceName)
    {
        if (!in_array($serviceName, $this->getInitializedServices())) {
            throw new DomainException(
                sprintf("Credentials for service '%s' was not initialized", $serviceName)
            );
        }

        return $this->serviceCredentials[$serviceName];
    }
public function getCredentialsByService ( $ serviceName ) { if ( ! in_array ( $ serviceName , $ this -> getInitializedServices ( ) ) ) { throw new DomainException ( sprintf ( "Credentials for service '%s' was not initialized" , $ serviceName ) ) ; } return $ this -> serviceCredentials [ $ serviceName ] ; }
Returns credentials for notification service

@param string $serviceName
@throws DomainException
@return CredentialsInterface
Returns credentials for notification service