public function getServiceURL($serviceName, $isFeedback = false)
    {
        $serviceName = NotificationServices::validateServiceName($serviceName);
        $serviceType = $isFeedback ? self::FEEDBACK_SERVICE : self::PUSH_SERVICE;
        $environment = $this->getEnvironment();

        $serviceConfig = $this->getServiceConfig();

        if (empty($serviceConfig[$serviceName][$serviceType][static::ENVIRONMENT_DEVELOPMENT])) {
            $environment = static::ENVIRONMENT_PRODUCTION;
        }

        if (empty($serviceConfig[$serviceName][$serviceType][$environment])) {
            throw new DomainException("Service url is not defined");
        }

        return $serviceConfig[$serviceName][$serviceType][$environment];
    }
public function getServiceURL($serviceName, $isFeedback = false)
    {
        $serviceName = NotificationServices::validateServiceName($serviceName);
        $serviceType = $isFeedback ? self::FEEDBACK_SERVICE : self::PUSH_SERVICE;
        $environment = $this->getEnvironment();

        $serviceConfig = $this->getServiceConfig();

        if (empty($serviceConfig[$serviceName][$serviceType][static::ENVIRONMENT_DEVELOPMENT])) {
            $environment = static::ENVIRONMENT_PRODUCTION;
        }

        if (empty($serviceConfig[$serviceName][$serviceType][$environment])) {
            throw new DomainException("Service url is not defined");
        }

        return $serviceConfig[$serviceName][$serviceType][$environment];
    }
public function getServiceURL ( $ serviceName , $ isFeedback = false ) { $ serviceName = NotificationServices :: validateServiceName ( $ serviceName ) ; $ serviceType = $ isFeedback ? self :: FEEDBACK_SERVICE : self :: PUSH_SERVICE ; $ environment = $ this -> getEnvironment ( ) ; $ serviceConfig = $ this -> getServiceConfig ( ) ; if ( empty ( $ serviceConfig [ $ serviceName ] [ $ serviceType ] [ static :: ENVIRONMENT_DEVELOPMENT ] ) ) { $ environment = static :: ENVIRONMENT_PRODUCTION ; } if ( empty ( $ serviceConfig [ $ serviceName ] [ $ serviceType ] [ $ environment ] ) ) { throw new DomainException ( "Service url is not defined" ) ; } return $ serviceConfig [ $ serviceName ] [ $ serviceType ] [ $ environment ] ; }
Gets notification service url by service name

@param string $serviceName
@param bool $isFeedback
@return array
Gets notification service url by service name