Skip to content

1.8.0

Compare
Choose a tag to compare
@oscarotero oscarotero released this 11 Dec 22:59
· 997 commits to master since this release
  • Changed to PSR-4 autoloader
  • PSR-1/2 code style fixes
  • Removed some deprecated adapters: Cadenaser, Marca, Parleys, Rtve, Yfrog
  • Changes in the Embed\Request class and Embed\RequestResolvers\RequestResolverInterface
  • A lot of fixes and new tests
  • Changed the way to configure the resolver. Now it's configured with the rest of the options under the "resolver" subarray:
//Old style:
Embed\Request::setResolverConfig(array(
    'userAgent' => 'My spider',
    'connectionTimeout' => 10
));

$info = Embed\Embed::create($url);

//New style
$info = Embed\Embed::create($url, array(
    'resolver' => array(
        "options" => array(
            CURLOPT_USERAGENT => 'My spider',
            CURLOPT_CONNECTTIMEOUT => 10
        )
    )
));