Skip to content

Commit 9986624

Browse files
committed
fix sentence
1 parent 07f2fae commit 9986624

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/csrf.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ object evaluated to the id::
288288
// ... do something, like deleting an object
289289
}
290290

291-
You add ``methods`` to the attribute to specify the HTTP methods that are allowed for
292-
the toekn validation, :class:`Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid` is ignored for other methods. By default, the attribute allows all methods.:
291+
You can use the ``methods`` parameter to the attribute to specify the HTTP methods that are allowed for
292+
the token validation, :class:`Symfony\\Component\\Security\\Http\\Attribute\\IsCsrfTokenValid` is ignored for other methods. By default, the attribute allows all methods.:
293293

294294
#[IsCsrfTokenValid('delete-item', tokenKey: 'token', methods: ['DELETE'])]
295295
public function delete(Post $post): Response
296296
{
297-
// ... do something, like deleting an object
297+
// ... delete the object
298298
}
299299

300300
.. versionadded:: 7.1

0 commit comments

Comments
 (0)