Skip to content

Commit

Permalink
[TwigBundle] Add default Twig templates path as a container param
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Nov 6, 2017
1 parent 0aedd68 commit 81b38ec
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -87,6 +87,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('twig.exception_listener.controller', $config['exception_controller']);

$container->setParameter('twig.form.resources', $config['form_themes']);
$container->setParameter('twig.default_path', $config['default_path']);

$envConfiguratorDefinition = $container->getDefinition('twig.configurator.environment');
$envConfiguratorDefinition->replaceArgument(0, $config['date']['format']);
Expand Down

0 comments on commit 81b38ec

Please sign in to comment.