DependencyInjection/EkynaCoreExtension.php
public function prepend(ContainerBuilder $container)
    {
        parent::prepend($container);

        $bundles = $container->getParameter('kernel.bundles');
        $configs = $container->getExtensionConfig($this->getAlias());
        $config = $this->processConfiguration(new Configuration(), $configs);

        if (array_key_exists('AsseticBundle', $bundles)) {
            $this->configureAsseticBundle($container, $config['assets']);
        }
        if (array_key_exists('TwigBundle', $bundles)) {
            $this->configureTwigBundle($container);
        }
        if (array_key_exists('BraincraftedBootstrapBundle', $bundles)) {
            $this->configureBraincraftedBootstrapBundle($container);
        }
        if (array_key_exists('KnpMenuBundle', $bundles)) {
            $this->configureKnpMenuBundle($container);
        }
        if (array_key_exists('StfalconTinymceBundle', $bundles)) {
            $this->configureStfalconTinymceBundle($container, $config, $bundles);
        }
        if ($config['cache']['enable'] && array_key_exists('FOSHttpCacheBundle', $bundles)) {
            $this->configureFOSHttpCacheBundle($container);
        }
    }
public function prepend(ContainerBuilder $container)
    {
        parent::prepend($container);

        $bundles = $container->getParameter('kernel.bundles');
        $configs = $container->getExtensionConfig($this->getAlias());
        $config = $this->processConfiguration(new Configuration(), $configs);

        if (array_key_exists('AsseticBundle', $bundles)) {
            $this->configureAsseticBundle($container, $config['assets']);
        }
        if (array_key_exists('TwigBundle', $bundles)) {
            $this->configureTwigBundle($container);
        }
        if (array_key_exists('BraincraftedBootstrapBundle', $bundles)) {
            $this->configureBraincraftedBootstrapBundle($container);
        }
        if (array_key_exists('KnpMenuBundle', $bundles)) {
            $this->configureKnpMenuBundle($container);
        }
        if (array_key_exists('StfalconTinymceBundle', $bundles)) {
            $this->configureStfalconTinymceBundle($container, $config, $bundles);
        }
        if ($config['cache']['enable'] && array_key_exists('FOSHttpCacheBundle', $bundles)) {
            $this->configureFOSHttpCacheBundle($container);
        }
    }
{@inheritDoc}