src/Graviton/ProxyBundle/DependencyInjection/GravitonProxyExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        parent::load($configs, $container);

        $configs = $this->processConfiguration(new Configuration(), $configs);

        $sources = $container->hasParameter('graviton.proxy.sources') ?
            $container->getParameter('graviton.proxy.sources') : [];

        $container->setParameter('graviton.proxy.sources', array_merge_recursive($configs['sources'], $sources));
    }
public function load(array $configs, ContainerBuilder $container)
    {
        parent::load($configs, $container);

        $configs = $this->processConfiguration(new Configuration(), $configs);

        $sources = $container->hasParameter('graviton.proxy.sources') ?
            $container->getParameter('graviton.proxy.sources') : [];

        $container->setParameter('graviton.proxy.sources', array_merge_recursive($configs['sources'], $sources));
    }
public function load ( array $ configs , ContainerBuilder $ container ) { parent :: load ( $ configs , $ container ) ; $ configs = $ this -> processConfiguration ( new Configuration ( ) , $ configs ) ; $ sources = $ container -> hasParameter ( 'graviton.proxy.sources' ) ? $ container -> getParameter ( 'graviton.proxy.sources' ) : [ ] ; $ container -> setParameter ( 'graviton.proxy.sources' , array_merge_recursive ( $ configs [ 'sources' ] , $ sources ) ) ; }
Loads current configuration.

@param array            $configs   Set of configuration options
@param ContainerBuilder $container Instance of the SF2 container

@return void
Loads current configuration .