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

        //admin menu
        $configs = $this->addMenuItemsByBundles($container, $config);
        $container->setParameter('core.admin_menus', $configs);
        
        //company menu
        if(isset($config['company_menus']))
        $container->setParameter('core.company_menus', $config['company_menus']);
        
        //google analytics
        if (isset($config['apis']['google_analytics']['options']['application_name'])) {
            $container->setParameter('google_analytics.application_name', $config['apis']['google_analytics']['options']['application_name']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_client_id'])) {
            $container->setParameter('google_analytics.oauth2_client_id', $config['apis']['google_analytics']['options']['oauth2_client_id']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_client_secret'])) {
            $container->setParameter('google_analytics.oauth2_client_secret', $config['apis']['google_analytics']['options']['oauth2_client_secret']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_redirect_uri'])) {
            $container->setParameter('google_analytics.oauth2_redirect_uri', $config['apis']['google_analytics']['options']['oauth2_redirect_uri']);
        }
        if (isset($config['apis']['google_analytics']['options']['developer_key'])) {
            $container->setParameter('google_analytics.developer_key', $config['apis']['google_analytics']['options']['developer_key']);
        }
        if (isset($config['apis']['google_analytics']['options']['site_name'])) {
            $container->setParameter('google_analytics.site_name', $config['apis']['google_analytics']['options']['site_name']);
        }
        
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yml');
        
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        //admin menu
        $configs = $this->addMenuItemsByBundles($container, $config);
        $container->setParameter('core.admin_menus', $configs);
        
        //company menu
        if(isset($config['company_menus']))
        $container->setParameter('core.company_menus', $config['company_menus']);
        
        //google analytics
        if (isset($config['apis']['google_analytics']['options']['application_name'])) {
            $container->setParameter('google_analytics.application_name', $config['apis']['google_analytics']['options']['application_name']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_client_id'])) {
            $container->setParameter('google_analytics.oauth2_client_id', $config['apis']['google_analytics']['options']['oauth2_client_id']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_client_secret'])) {
            $container->setParameter('google_analytics.oauth2_client_secret', $config['apis']['google_analytics']['options']['oauth2_client_secret']);
        }
        if (isset($config['apis']['google_analytics']['options']['oauth2_redirect_uri'])) {
            $container->setParameter('google_analytics.oauth2_redirect_uri', $config['apis']['google_analytics']['options']['oauth2_redirect_uri']);
        }
        if (isset($config['apis']['google_analytics']['options']['developer_key'])) {
            $container->setParameter('google_analytics.developer_key', $config['apis']['google_analytics']['options']['developer_key']);
        }
        if (isset($config['apis']['google_analytics']['options']['site_name'])) {
            $container->setParameter('google_analytics.site_name', $config['apis']['google_analytics']['options']['site_name']);
        }
        
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yml');
        
    }
{@inheritdoc}