Commit 28c1b4c1 authored by Grégoire Pineau's avatar Grégoire Pineau

Added Twig_Extension_Debug if app is in debug mode

parent c3fd3464
......@@ -41,6 +41,10 @@ class TwigServiceProvider implements ServiceProviderInterface
$twig->addGlobal('app', $app);
$twig->addExtension(new TwigCoreExtension());
if ($app['debug']) {
$twig->addExtension(new \Twig_Extension_Debug());
}
if (isset($app['symfony_bridges'])) {
if (isset($app['url_generator'])) {
$twig->addExtension(new TwigRoutingExtension($app['url_generator']));
......
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