From c91fc3a3dc218736749c5ca90b9f7ae4d40fffb4 Mon Sep 17 00:00:00 2001 From: malc0mn Date: Tue, 12 Jan 2016 13:30:47 +0100 Subject: [PATCH] Use the 3.0 naming for csrf_provider in 3.0, csrf_provider was renamed to csrf_token_generator, see https://github.com/symfony/symfony/blob/master/UPGRADE-3.0.md --- cookbook/security/csrf_in_login_form.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cookbook/security/csrf_in_login_form.rst b/cookbook/security/csrf_in_login_form.rst index 5853bbec647..4f6061c8606 100644 --- a/cookbook/security/csrf_in_login_form.rst +++ b/cookbook/security/csrf_in_login_form.rst @@ -33,7 +33,7 @@ provider available in the Security component: # ... form_login: # ... - csrf_provider: security.csrf.token_manager + csrf_token_generator: security.csrf.token_manager .. code-block:: xml @@ -50,7 +50,7 @@ provider available in the Security component: - + @@ -66,7 +66,7 @@ provider available in the Security component: // ... 'form_login' => array( // ... - 'csrf_provider' => 'security.csrf.token_manager', + 'csrf_token_generator' => 'security.csrf.token_manager', ), ), ), @@ -75,6 +75,10 @@ provider available in the Security component: The Security component can be configured further, but this is all information it needs to be able to use CSRF in the login form. +.. versionadded:: 3.0 + The ``csrf_token_generator`` was introduced in Symfony 3.0. Prior to 2.8, it was called ``csrf_provider``. + + Rendering the CSRF field ------------------------