protected function _extractConfig($html)
{
$Document = $this->_Dom->document($html);
$links = $Document->tags('link');
foreach ($links as $Link) {
$format = $this->_extractFormat($Link);
if ($format) {
return new Config($Link->get('href'), $format);
}
}
throw new Exception('Unable to extract any OEmbed endpoint');
}