Skip to content

Commit f9edfd5

Browse files
committed
minor #6586 6338 use csrfManager instead of csrfProvider (snoek09)
This PR was squashed before being merged into the 2.7 branch (closes #6586). Discussion ---------- 6338 use csrfManager instead of csrfProvider | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 | Fixed tickets | #6338 Commits ------- 500dce5 6338 use csrfManager instead of csrfProvider
2 parents 2038123 + 500dce5 commit f9edfd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/form/introduction.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,12 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
202202
)));
203203
$formEngine = new TwigRendererEngine(array($defaultFormTheme));
204204
$formEngine->setEnvironment($twig);
205+
206+
// ... (see the previous CSRF Protection section for more information)
207+
205208
// add the FormExtension to Twig
206209
$twig->addExtension(
207-
new FormExtension(new TwigRenderer($formEngine, $csrfProvider))
210+
new FormExtension(new TwigRenderer($formEngine, $csrfManager))
208211
);
209212

210213
// create your form factory as normal

0 commit comments

Comments
 (0)