public function prepend(ContainerBuilder $container)
    {
        $configs = $container->getExtensionConfig($this->getAlias());
        $config = $this->processConfiguration(new Configuration(), $configs);

        $container->setAlias('opifer.content.content_manager', $config['content_manager']);
        $container->setDefinition('opifer.content.cache_provider', new Definition($config['cache_provider']));

        $parameters = $this->getParameters($config);
        foreach ($parameters as $key => $value) {
            $container->setParameter($key, $value);
        }

        $this->prependExtensionConfig($container, $config);
    }
public function prepend(ContainerBuilder $container)
    {
        $configs = $container->getExtensionConfig($this->getAlias());
        $config = $this->processConfiguration(new Configuration(), $configs);

        $container->setAlias('opifer.content.content_manager', $config['content_manager']);
        $container->setDefinition('opifer.content.cache_provider', new Definition($config['cache_provider']));

        $parameters = $this->getParameters($config);
        foreach ($parameters as $key => $value) {
            $container->setParameter($key, $value);
        }

        $this->prependExtensionConfig($container, $config);
    }
public function prepend ( ContainerBuilder $ container ) { $ configs = $ container -> getExtensionConfig ( $ this -> getAlias ( ) ) ; $ config = $ this -> processConfiguration ( new Configuration ( ) , $ configs ) ; $ container -> setAlias ( 'opifer.content.content_manager' , $ config [ 'content_manager' ] ) ; $ container -> setDefinition ( 'opifer.content.cache_provider' , new Definition ( $ config [ 'cache_provider' ] ) ) ; $ parameters = $ this -> getParameters ( $ config ) ; foreach ( $ parameters as $ key => $ value ) { $ container -> setParameter ( $ key , $ value ) ; } $ this -> prependExtensionConfig ( $ container , $ config ) ; }
Prepend our config before other bundles, so we can preset
their config with our parameters.

@param ContainerBuilder $container
Prepend our config before other bundles so we can preset their config with our parameters .