[Security] fixed wrong PHPDoc of the TokenGeneratorInterface

This commit is contained in:
Hugo Hamon 2014-05-02 15:39:04 +02:00
parent 272490312a
commit 0e32676032

View File

@ -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>