public function getPushService($host) : PushService
    {
        foreach ($this->pushServices as $pushService) {
            if ($pushService->supportsHost($host)) {
                return $pushService;
            }
        }

        throw UnsupportedPushService::forHost($host);
    }
public function getPushService($host) : PushService
    {
        foreach ($this->pushServices as $pushService) {
            if ($pushService->supportsHost($host)) {
                return $pushService;
            }
        }

        throw UnsupportedPushService::forHost($host);
    }
public function getPushService ( $ host ) : PushService { foreach ( $ this -> pushServices as $ pushService ) { if ( $ pushService -> supportsHost ( $ host ) ) { return $ pushService ; } } throw UnsupportedPushService :: forHost ( $ host ) ; }
Get a push service from the registry.

@param string $host

@return PushService

@throws UnsupportedPushService When no push service that supports the given host is found.
Get a push service from the registry .