public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);
        foreach ($config as $key => $subConfig) {
            foreach ($subConfig as $subKey => $value) {
                $container->setParameter($this->getAlias().'.'.$key.'.'.$subKey, $value);
            }
        }

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

        foreach ($this->modules as $module) {
            if (isset($config[$module]['enable']) && $config[$module]['enable']) {
                $loader->load($module.'.xml');
            }
        }
        if (isset($config['profiler']['enable']) && $config['profiler']['enable']) {
            $probes = array();
            foreach ($config['profiler'] as $key => $value) {
                if (in_array($key, array('enable', 'sampling', 'request')) || !$value) {
                    continue;
                }
                $probes = array_merge($probes, $this->createProfilerProbes($key, $container));
            }
            $container->getDefinition('socloz_monitoring.profiler')
                ->replaceArgument(1, $probes);
        }
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);
        foreach ($config as $key => $subConfig) {
            foreach ($subConfig as $subKey => $value) {
                $container->setParameter($this->getAlias().'.'.$key.'.'.$subKey, $value);
            }
        }

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

        foreach ($this->modules as $module) {
            if (isset($config[$module]['enable']) && $config[$module]['enable']) {
                $loader->load($module.'.xml');
            }
        }
        if (isset($config['profiler']['enable']) && $config['profiler']['enable']) {
            $probes = array();
            foreach ($config['profiler'] as $key => $value) {
                if (in_array($key, array('enable', 'sampling', 'request')) || !$value) {
                    continue;
                }
                $probes = array_merge($probes, $this->createProfilerProbes($key, $container));
            }
            $container->getDefinition('socloz_monitoring.profiler')
                ->replaceArgument(1, $probes);
        }
    }
{@inheritDoc}