private function loadMaxRedirects(array $config, ContainerBuilder $container)
    {
        $services = array('buzz', 'curl', 'guzzle', 'stream', 'zend');

        foreach ($services as $service) {
            $container
                ->getDefinition(sprintf('widop_http_adapter.%s', $service))
                ->addMethodCall('setMaxRedirects', array($config['max_redirects']));
        }
    }