sf4, adding require symfony/templating + fix treebuilder depreciation

This commit is contained in:
2020-07-31 18:21:00 +02:00
parent 2ed1de8629
commit 95682734dd
4 changed files with 9 additions and 21 deletions

View File

@@ -136,17 +136,6 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
$this->prependHomepageWidget($container);
$this->prependDoctrineDQL($container);
$this->prependCruds($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'][] = 'ChillPersonBundle';
$container->prependExtensionConfig('assetic',
array('bundles' => array('ChillPersonBundle')));
//add person_fields parameter as global
$chillPersonConfig = $container->getExtensionConfig($this->getAlias());