protected function discover($url)
    {
        $endpoint = $this->findEndpointFromProviders($url);

        // if no provider was found, try to discover the endpoint URL
        if ($this->discovery && !$endpoint) {
            $discover = new Discoverer();
            $endpoint = $discover->getEndpointForUrl($url);
        }

        if (!$endpoint) {
            throw new \InvalidArgumentException('No oEmbed links found.');
        }

        return $endpoint;
    }
protected function discover($url)
    {
        $endpoint = $this->findEndpointFromProviders($url);

        // if no provider was found, try to discover the endpoint URL
        if ($this->discovery && !$endpoint) {
            $discover = new Discoverer();
            $endpoint = $discover->getEndpointForUrl($url);
        }

        if (!$endpoint) {
            throw new \InvalidArgumentException('No oEmbed links found.');
        }

        return $endpoint;
    }
protected function discover ( $ url ) { $ endpoint = $ this -> findEndpointFromProviders ( $ url ) ; // if no provider was found, try to discover the endpoint URL if ( $ this -> discovery && ! $ endpoint ) { $ discover = new Discoverer ( ) ; $ endpoint = $ discover -> getEndpointForUrl ( $ url ) ; } if ( ! $ endpoint ) { throw new \ InvalidArgumentException ( 'No oEmbed links found.' ) ; } return $ endpoint ; }
Discover an oEmbed API endpoint

@param string $url The URL to attempt to discover Omlex for

@return string The oEmbed API endpoint discovered

@throws \InvalidArgumentException If not $endpoint was found
Discover an oEmbed API endpoint