@@ -33,7 +33,7 @@ provider available in the Security component:
3333 # ...
3434 form_login :
3535 # ...
36- csrf_token_generator : security.csrf.token_manager
36+ csrf_provider : security.csrf.token_manager
3737
3838 .. code-block :: xml
3939
@@ -50,7 +50,7 @@ provider available in the Security component:
5050
5151 <firewall name =" secured_area" >
5252 <!-- ... -->
53- <form-login csrf-token-generator =" security.csrf.token_manager" />
53+ <form-login csrf-provider =" security.csrf.token_manager" />
5454 </firewall >
5555 </config >
5656 </srv : container >
@@ -66,7 +66,7 @@ provider available in the Security component:
6666 // ...
6767 'form_login' => array(
6868 // ...
69- 'csrf_token_generator ' => 'security.csrf.token_manager',
69+ 'csrf_provider ' => 'security.csrf.token_manager',
7070 ),
7171 ),
7272 ),
@@ -122,7 +122,7 @@ After this, you have protected your login form against CSRF attacks.
122122.. tip ::
123123
124124 You can change the name of the field by setting ``csrf_parameter `` and change
125- the token ID by setting ``csrf_token_id `` in your configuration:
125+ the token ID by setting ``intention `` in your configuration:
126126
127127 .. configuration-block ::
128128
@@ -138,7 +138,7 @@ After this, you have protected your login form against CSRF attacks.
138138 form_login :
139139 # ...
140140 csrf_parameter : _csrf_security_token
141- csrf_token_id : a_private_string
141+ intention : a_private_string
142142
143143 .. code-block :: xml
144144
@@ -156,7 +156,7 @@ After this, you have protected your login form against CSRF attacks.
156156 <firewall name =" secured_area" >
157157 <!-- ... -->
158158 <form-login csrf-parameter =" _csrf_security_token"
159- csrf-token-id =" a_private_string"
159+ intention =" a_private_string"
160160 />
161161 </firewall >
162162 </config >
@@ -174,7 +174,7 @@ After this, you have protected your login form against CSRF attacks.
174174 'form_login' => array(
175175 // ...
176176 'csrf_parameter' => '_csrf_security_token',
177- 'csrf_token_id' => 'a_private_string'
177+ 'intention' => 'a_private_string'
178178 ),
179179 ),
180180 ),
0 commit comments