private function configurePlugins(ContainerBuilder $container, array $config)
    {
        if (!empty($config['authentication'])) {
            $this->configureAuthentication($container, $config['authentication']);
        }
        unset($config['authentication']);

        foreach ($config as $name => $pluginConfig) {
            $pluginId = 'httplug.plugin.'.$name;

            if ($this->isConfigEnabled($container, $pluginConfig)) {
                $def = $container->getDefinition($pluginId);
                $this->configurePluginByName($name, $def, $pluginConfig, $container, $pluginId);
            }
        }
    }
private function configurePlugins(ContainerBuilder $container, array $config)
    {
        if (!empty($config['authentication'])) {
            $this->configureAuthentication($container, $config['authentication']);
        }
        unset($config['authentication']);

        foreach ($config as $name => $pluginConfig) {
            $pluginId = 'httplug.plugin.'.$name;

            if ($this->isConfigEnabled($container, $pluginConfig)) {
                $def = $container->getDefinition($pluginId);
                $this->configurePluginByName($name, $def, $pluginConfig, $container, $pluginId);
            }
        }
    }
private function configurePlugins ( ContainerBuilder $ container , array $ config ) { if ( ! empty ( $ config [ 'authentication' ] ) ) { $ this -> configureAuthentication ( $ container , $ config [ 'authentication' ] ) ; } unset ( $ config [ 'authentication' ] ) ; foreach ( $ config as $ name => $ pluginConfig ) { $ pluginId = 'httplug.plugin.' . $ name ; if ( $ this -> isConfigEnabled ( $ container , $ pluginConfig ) ) { $ def = $ container -> getDefinition ( $ pluginId ) ; $ this -> configurePluginByName ( $ name , $ def , $ pluginConfig , $ container , $ pluginId ) ; } } }
Configure all Httplug plugins or remove their service definition.

@param ContainerBuilder $container
@param array            $config
Configure all Httplug plugins or remove their service definition .