move spacename to CLChillMain to ChillMain

This commit is contained in:
2014-10-17 08:27:31 +02:00
parent f44abb26fe
commit d9aa417e3c
27 changed files with 61 additions and 121 deletions

View File

@@ -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());

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
<?php
namespace CL\Chill\MainBundle\DependencyInjection;
namespace Chill\MainBundle\DependencyInjection;
use Exception;