[Security] fixed wrong PHPDoc of the TokenGeneratorInterface
This commit is contained in:
parent
272490312a
commit
0e32676032
@ -12,19 +12,7 @@
|
||||
namespace Symfony\Component\Security\Csrf\TokenGenerator;
|
||||
|
||||
/**
|
||||
* Generates and validates CSRF tokens.
|
||||
*
|
||||
* You can generate a CSRF token by using the method {@link generateCsrfToken()}.
|
||||
* This method expects a unique token ID as argument. The token ID can later be
|
||||
* used to validate a token provided by the user.
|
||||
*
|
||||
* Token IDs do not necessarily have to be secret, but they should NEVER be
|
||||
* created from data provided by the client. A good practice is to hard-code the
|
||||
* token IDs for the various CSRF tokens used by your application.
|
||||
*
|
||||
* You should use the method {@link isCsrfTokenValid()} to check a CSRF token
|
||||
* submitted by the client. This method will return true if the CSRF token is
|
||||
* valid.
|
||||
* Generates CSRF tokens.
|
||||
*
|
||||
* @since 2.4
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
|
Reference in New Issue
Block a user