public function __construct(array $config = array())
{
$this->config = array_replace_recursive(array('oembed' => null, 'use_embed_prefix' => false, 'params' => array('width' => 0, 'maxwidth' => 0, 'height' => 0, 'maxheight' => 0), 'custom_params' => array(), 'http' => array(), 'fake' => array(), 'ignore_tags' => array('pre', 'code', 'a', 'img')), $config);
$this->config['params']['maxwidth'] = max($this->config['params']['width'], $this->config['params']['maxwidth']);
$this->config['params']['maxheight'] = max($this->config['params']['height'], $this->config['params']['maxheight']);
unset($this->config['params']['height'], $this->config['params']['width']);
$this->oembed = new \Embera\Oembed(new \Embera\HttpRequest($this->config['http']));
$this->providers = new \Embera\Providers($this->config, $this->oembed);
}