1.8.0
- 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 andEmbed\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
)
)
));