Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit cfe0fa9

Browse files
author
Hugo Hamon
committed
[Security] fixed wrong PHPDoc of the TokenGeneratorInterface
1 parent 1f2b6d8 commit cfe0fa9

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Csrf/TokenGenerator/TokenGeneratorInterface.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,7 @@
1212
namespace Symfony\Component\Security\Csrf\TokenGenerator;
1313

1414
/**
15-
* Generates and validates CSRF tokens.
16-
*
17-
* You can generate a CSRF token by using the method {@link generateCsrfToken()}.
18-
* This method expects a unique token ID as argument. The token ID can later be
19-
* used to validate a token provided by the user.
20-
*
21-
* Token IDs do not necessarily have to be secret, but they should NEVER be
22-
* created from data provided by the client. A good practice is to hard-code the
23-
* token IDs for the various CSRF tokens used by your application.
24-
*
25-
* You should use the method {@link isCsrfTokenValid()} to check a CSRF token
26-
* submitted by the client. This method will return true if the CSRF token is
27-
* valid.
15+
* Generates CSRF tokens.
2816
*
2917
* @since 2.4
3018
* @author Bernhard Schussek <[email protected]>

0 commit comments

Comments
 (0)