@@ -33,7 +33,7 @@ provider available in the Security component:
33
33
# ...
34
34
form_login :
35
35
# ...
36
- csrf_token_generator : security.csrf.token_manager
36
+ csrf_provider : security.csrf.token_manager
37
37
38
38
.. code-block :: xml
39
39
@@ -50,7 +50,7 @@ provider available in the Security component:
50
50
51
51
<firewall name =" secured_area" >
52
52
<!-- ... -->
53
- <form-login csrf-token-generator =" security.csrf.token_manager" />
53
+ <form-login csrf-provider =" security.csrf.token_manager" />
54
54
</firewall >
55
55
</config >
56
56
</srv : container >
@@ -66,7 +66,7 @@ provider available in the Security component:
66
66
// ...
67
67
'form_login' => array(
68
68
// ...
69
- 'csrf_token_generator ' => 'security.csrf.token_manager',
69
+ 'csrf_provider ' => 'security.csrf.token_manager',
70
70
),
71
71
),
72
72
),
@@ -124,7 +124,7 @@ After this, you have protected your login form against CSRF attacks.
124
124
.. tip ::
125
125
126
126
You can change the name of the field by setting ``csrf_parameter `` and change
127
- the token ID by setting ``csrf_token_id `` in your configuration:
127
+ the token ID by setting ``intention `` in your configuration:
128
128
129
129
.. configuration-block ::
130
130
@@ -140,7 +140,7 @@ After this, you have protected your login form against CSRF attacks.
140
140
form_login :
141
141
# ...
142
142
csrf_parameter : _csrf_security_token
143
- csrf_token_id : a_private_string
143
+ intention : a_private_string
144
144
145
145
.. code-block :: xml
146
146
@@ -158,7 +158,7 @@ After this, you have protected your login form against CSRF attacks.
158
158
<firewall name =" secured_area" >
159
159
<!-- ... -->
160
160
<form-login csrf-parameter =" _csrf_security_token"
161
- csrf-token-id =" a_private_string"
161
+ intention =" a_private_string"
162
162
/>
163
163
</firewall >
164
164
</config >
@@ -176,7 +176,7 @@ After this, you have protected your login form against CSRF attacks.
176
176
'form_login' => array(
177
177
// ...
178
178
'csrf_parameter' => '_csrf_security_token',
179
- 'csrf_token_id' => 'a_private_string'
179
+ 'intention' => 'a_private_string'
180
180
),
181
181
),
182
182
),
0 commit comments