mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
sf4 resolve errors and depreciations
This commit is contained in:
@@ -134,17 +134,6 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
{
|
||||
$bundles = $container->getParameter('kernel.bundles');
|
||||
//add ChillMain to assetic-enabled bundles
|
||||
if (!isset($bundles['AsseticBundle'])) {
|
||||
throw new MissingBundleException('AsseticBundle');
|
||||
}
|
||||
|
||||
$asseticConfig = $container->getExtensionConfig('assetic');
|
||||
$asseticConfig['bundles'][] = 'ChillMainBundle';
|
||||
$container->prependExtensionConfig('assetic',
|
||||
array('bundles' => array('ChillMainBundle')));
|
||||
|
||||
//add installation_name and date_format to globals
|
||||
$chillMainConfig = $container->getExtensionConfig($this->getAlias());
|
||||
$config = $this->processConfiguration($this
|
||||
|
Reference in New Issue
Block a user