Commit 4453e9fc authored by Masao Maeda's avatar Masao Maeda

fixed for the latest TwigFormExtension

parent 9ac208d4
......@@ -55,7 +55,7 @@ class TwigServiceProvider implements ServiceProviderInterface
$app['twig.form.templates'] = array('form_div_layout.html.twig');
}
$twig->addExtension(new TwigFormExtension($app['twig.form.templates']));
$twig->addExtension(new TwigFormExtension($app['form.csrf_provider'], $app['twig.form.templates']));
// add loader for Symfony built-in form templates
$reflected = new \ReflectionClass('Symfony\Bridge\Twig\Extension\FormExtension');
......
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