Skip to content

Commit 1e09697

Browse files
committed
minor #7499 Standalone TwigRendererEngine argument (JohnstonCode)
This PR was merged into the 3.2 branch. Discussion ---------- Standalone TwigRendererEngine argument Standalone implementations need the Twig environment passed as the second argument since version 3.2. Commits ------- 68adff4 Standalone TwigRendererEngine argument
2 parents ffee6a9 + 68adff4 commit 1e09697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
193193
$viewsDir,
194194
$vendorTwigBridgeDir.'/Resources/views/Form',
195195
)));
196-
$formEngine = new TwigRendererEngine(array($defaultFormTheme));
196+
$formEngine = new TwigRendererEngine(array($defaultFormTheme), $twig);
197197
$twig->addRuntimeLoader(new \Twig_FactoryRuntimeLoader(array(
198198
TwigRenderer::class => function () use ($formEngine, $csrfManager) {
199199
return new TwigRenderer($formEngine, $csrfManager);

0 commit comments

Comments
 (0)