From b4b78ebfbf59fe14e4cfe4c838cf98d70af89565 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 12 Oct 2021 13:39:12 +0200 Subject: [PATCH] Fix link to isCsrfTokenValid() for 5.3+ --- security/csrf.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/csrf.rst b/security/csrf.rst index def19db4f36..9cb98f95897 100644 --- a/security/csrf.rst +++ b/security/csrf.rst @@ -150,7 +150,7 @@ generate a CSRF token in the template and store it as a hidden form field: Then, get the value of the CSRF token in the controller action and use the -:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait::isCsrfTokenValid` +:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::isCsrfTokenValid` method to check its validity:: use Symfony\Component\HttpFoundation\Request;