mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
move spacename to CLChillMain to ChillMain
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace CL\Chill\MainBundle\DependencyInjection;
|
||||
namespace Chill\MainBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
@@ -13,7 +13,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
|
||||
*
|
||||
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
|
||||
*/
|
||||
class CLChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
@@ -33,15 +33,15 @@ class CLChillMainExtension extends Extension implements PrependExtensionInterfac
|
||||
public function prepend(ContainerBuilder $container)
|
||||
{
|
||||
$bundles = $container->getParameter('kernel.bundles');
|
||||
//add CLChillMain to assetic-enabled bundles
|
||||
//add ChillMain to assetic-enabled bundles
|
||||
if (!isset($bundles['AsseticBundle'])) {
|
||||
throw new MissingBundleException('AsseticBundle');
|
||||
}
|
||||
|
||||
$asseticConfig = $container->getExtensionConfig('assetic');
|
||||
$asseticConfig['bundles'][] = 'CLChillMainBundle';
|
||||
$asseticConfig['bundles'][] = 'ChillMainBundle';
|
||||
$container->prependExtensionConfig('assetic',
|
||||
array('bundles' => array('CLChillMainBundle')));
|
||||
array('bundles' => array('ChillMainBundle')));
|
||||
|
||||
//add installation_name to globals
|
||||
$chillMainConfig = $container->getExtensionConfig($this->getAlias());
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace CL\Chill\MainBundle\DependencyInjection;
|
||||
namespace Chill\MainBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace CL\Chill\MainBundle\DependencyInjection;
|
||||
namespace Chill\MainBundle\DependencyInjection;
|
||||
|
||||
use Exception;
|
||||
|
||||
|
Reference in New Issue
Block a user