public function createServiceClient($serviceName, $isFeedback = false)
    {
        $serviceUrl = $this->getServiceURL($serviceName, $isFeedback);

        $clientClass = sprintf(
            'Zbox\UnifiedPush\NotificationService\%s\%s',
            $serviceName,
            $isFeedback ? 'ServiceFeedbackClient' : 'ServiceClient'
        );

        $credentials        = $this->credentialsFactory->getCredentialsByService($serviceName);
        $clientConnection   = new $clientClass($serviceUrl, $credentials);

        return $clientConnection;
    }
public function createServiceClient($serviceName, $isFeedback = false)
    {
        $serviceUrl = $this->getServiceURL($serviceName, $isFeedback);

        $clientClass = sprintf(
            'Zbox\UnifiedPush\NotificationService\%s\%s',
            $serviceName,
            $isFeedback ? 'ServiceFeedbackClient' : 'ServiceClient'
        );

        $credentials        = $this->credentialsFactory->getCredentialsByService($serviceName);
        $clientConnection   = new $clientClass($serviceUrl, $credentials);

        return $clientConnection;
    }
public function createServiceClient ( $ serviceName , $ isFeedback = false ) { $ serviceUrl = $ this -> getServiceURL ( $ serviceName , $ isFeedback ) ; $ clientClass = sprintf ( 'Zbox\UnifiedPush\NotificationService\%s\%s' , $ serviceName , $ isFeedback ? 'ServiceFeedbackClient' : 'ServiceClient' ) ; $ credentials = $ this -> credentialsFactory -> getCredentialsByService ( $ serviceName ) ; $ clientConnection = new $ clientClass ( $ serviceUrl , $ credentials ) ; return $ clientConnection ; }
Creates client server connection by service name and sender credentials

@param string $serviceName
@param bool $isFeedback
@return ServiceClientInterface
Creates client server connection by service name and sender credentials