DependencyInjection/TecnocreacionesVzlaGovernmentExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');
        $classMenuBuilder = $config['template']['developer']['menu'];
        
        $container->setParameter('tecnocreaciones_vzla_government.menu_builder.developer.class', $classMenuBuilder);
        
        $templatesConfig = array();
        $templatesConfig['developer']= $config['template']['developer'];
        $globalConfig = $container->getDefinition('tecnocreaciones_vzla_government.global_config');
        
        $globalConfig->addMethodCall('setTemplates',array($templatesConfig));
        $globalConfig->addMethodCall('setOptions',array($config['config']));
        
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');
        $classMenuBuilder = $config['template']['developer']['menu'];
        
        $container->setParameter('tecnocreaciones_vzla_government.menu_builder.developer.class', $classMenuBuilder);
        
        $templatesConfig = array();
        $templatesConfig['developer']= $config['template']['developer'];
        $globalConfig = $container->getDefinition('tecnocreaciones_vzla_government.global_config');
        
        $globalConfig->addMethodCall('setTemplates',array($templatesConfig));
        $globalConfig->addMethodCall('setOptions',array($config['config']));
        
    }
{@inheritDoc}