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

added sensible default for Twig strict_variables option

parent 96640c27
......@@ -30,8 +30,9 @@ class TwigExtension implements ExtensionInterface
$app['twig'] = $app->share(function () use ($app) {
$app['twig.options'] = array_replace(
array(
'charset' => $app['charset'],
'debug' => $app['debug'],
'charset' => $app['charset'],
'debug' => $app['debug'],
'strict_variables' => !$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