Commit 6615118d authored by Pascal Luna's avatar Pascal Luna

Fix deprecation notice with symfony/twig-bridge 3.2+ in TwigServiceProvider

parent 1b2f0394
......@@ -109,7 +109,7 @@ class TwigServiceProvider implements ServiceProviderInterface
return new TwigRenderer($app['twig.form.engine'], $csrfTokenManager);
};
$twig->addExtension(new FormExtension($app['twig.form.renderer']));
$twig->addExtension(new FormExtension(class_exists(HttpKernelRuntime::class) ? null : $app['twig.form.renderer']));
// 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