Commit 8bd039dd authored by Fabien Potencier's avatar Fabien Potencier

added sensible default for Twig debug mode

parent 262fd9a0
......@@ -29,7 +29,10 @@ class TwigExtension implements ExtensionInterface
{
$app['twig'] = $app->share(function () use ($app) {
$app['twig.options'] = array_replace(
array('charset' => $app['charset']),
array(
'charset' => $app['charset'],
'debug' => $app['debug'],
),
isset($app['twig.options']) ? $app['twig.options'] : array()
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment