Skip to content

Commit 52cb0a7

Browse files
committed
minor #15738 Fix method link to isCsrfTokenValid (mathieu-ducrot)
This PR was merged into the 4.4 branch. Discussion ---------- Fix method link to isCsrfTokenValid ## Changelog Fix the method link from AbstractController.php to ControllerTrait.php because the method comes from the Trait. Commits ------- d337720 Fix method link to isCsrfTokenValid
2 parents 39fb93c + d337720 commit 52cb0a7

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)