DependencyInjection/WidopHttpAdapterExtension.php
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']));
        }
    }
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']));
        }
    }
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' ] ) ) ; } }
Loads the max redirects in all http adapters.

@param array                                                   $config    The configuration.
@param \Symfony\Component\DependencyInjection\ContainerBuilder $container The container.
Loads the max redirects in all http adapters .