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;