Skip to content

Commit d337720

Browse files
Fix method link to isCsrfTokenValid
## Changelog Fix the method link from AbstractController.php to ControllerTrait.php because the method comes from the Trait.
1 parent 43e7718 commit d337720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/csrf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ generate a CSRF token in the template and store it as a hidden form field:
150150
</form>
151151

152152
Then, get the value of the CSRF token in the controller action and use the
153-
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::isCsrfTokenValid`
153+
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerTrait::isCsrfTokenValid`
154154
to check its validity::
155155

156156
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
 (0)