diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-08-24 12:04:22 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-08-25 22:24:28 +0200 |
commit | 17e7a89a60f700efc8a0b082b7a82005e6288e80 (patch) | |
tree | 628505c1a127ba5b531e4bb24bda4f659bb7317d /phpBB/phpbb/di/extension/core.php | |
parent | f6a4843c6df3a9b0490eb3d273ebed7d04a89582 (diff) | |
download | forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.gz forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.bz2 forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.xz forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.zip |
[ticket/14124] Automatically translate exceptions in CLI
PHPBB3-14124
Diffstat (limited to 'phpBB/phpbb/di/extension/core.php')
-rw-r--r-- | phpBB/phpbb/di/extension/core.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/di/extension/core.php b/phpBB/phpbb/di/extension/core.php index 91b321a684..c48a80a558 100644 --- a/phpBB/phpbb/di/extension/core.php +++ b/phpBB/phpbb/di/extension/core.php @@ -80,6 +80,7 @@ class core extends Extension { $twig_environment_options['auto_reload'] = true; } + // Replace the 8th argument, the options passed to the environment $definition->replaceArgument(7, $twig_environment_options); @@ -88,6 +89,12 @@ class core extends Extension $definition = $container->getDefinition('template.twig.extensions.debug'); $definition->addTag('twig.extension'); } + + // Set the debug options + foreach ($config['debug'] as $name => $value) + { + $container->setParameter('debug.' . $name, $value); + } } /** |