protected function findEndpointFromProviders($url)
    {
        // try to find a provider matching the supplied URL if no one has been supplied
        foreach ($this->providers as $provider) {
            /** @var $provider Provider */
            if ($provider->match($url)) {
                return $provider->getEndpoint();
            }
        }

        return null;
    }
protected function findEndpointFromProviders($url)
    {
        // try to find a provider matching the supplied URL if no one has been supplied
        foreach ($this->providers as $provider) {
            /** @var $provider Provider */
            if ($provider->match($url)) {
                return $provider->getEndpoint();
            }
        }

        return null;
    }
protected function findEndpointFromProviders ( $ url ) { // try to find a provider matching the supplied URL if no one has been supplied foreach ( $ this -> providers as $ provider ) { /** @var $provider Provider */ if ( $ provider -> match ( $ url ) ) { return $ provider -> getEndpoint ( ) ; } } return null ; }
Finds an endpoint by looping trough the providers array and matching the url against
the allowed schemes for each provider.

@param string $url the url to find an endpoint for.

@return string|null the endpoint if a match was found, null if no suitable provider was found.
Finds an endpoint by looping trough the providers array and matching the url against the allowed schemes for each provider .