mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add date_format to globals in twig
This commit is contained in:
parent
1c47d597d3
commit
394decb579
@ -43,14 +43,15 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
$container->prependExtensionConfig('assetic',
|
||||
array('bundles' => array('ChillMainBundle')));
|
||||
|
||||
//add installation_name to globals
|
||||
//add installation_name and date_format to globals
|
||||
$chillMainConfig = $container->getExtensionConfig($this->getAlias());
|
||||
$config = $this->processConfiguration(new Configuration(), $chillMainConfig);
|
||||
$twigConfig = array(
|
||||
'globals' => array(
|
||||
'installation' => array(
|
||||
'name' => $config['installation_name']
|
||||
)
|
||||
),
|
||||
'date_format' => 'd-M-Y'
|
||||
)
|
||||
);
|
||||
$container->prependExtensionConfig('twig', $twigConfig);
|
||||
|
Loading…
x
Reference in New Issue
Block a user