Skip to content

Commit b4b78eb

Browse files
committed
Fix link to isCsrfTokenValid() for 5.3+
1 parent 8b487eb commit b4b78eb

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\\ControllerTrait::isCsrfTokenValid`
153+
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController::isCsrfTokenValid`
154154
method to check its validity::
155155

156156
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
 (0)