From d3377207920d3618c9064c0375499166a52a5470 Mon Sep 17 00:00:00 2001 From: Mathieu Ducrot Date: Sat, 21 Aug 2021 18:12:47 +0200 Subject: [PATCH] Fix method link to isCsrfTokenValid ## Changelog Fix the method link from AbstractController.php to ControllerTrait.php because the method comes from the Trait. --- security/csrf.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/csrf.rst b/security/csrf.rst index d79bb25e7fb..b68a4d84c39 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\\AbstractController::isCsrfTokenValid` +:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait::isCsrfTokenValid` to check its validity:: use Symfony\Component\HttpFoundation\Request;