security
security copied to clipboard
Moved exception message key to a constant.
We override the exception method in translation as users don't know what a CSRF token is, or why it is invalid. Using a public constant is more consistent for overriding in the translations.
Thanks for your pull request! We love contributions.
However, this repository is what we call a "subtree split": a read-only copy of one directory of the main Symfony repository. It is used by Composer to allow developers to depend on specific Symfony components.
If you want to contribute, you should instead open a pull request on the main repository:
https://github.com/symfony/symfony
Thank you for your contribution!
PS: if you haven't already, please add tests, and beware that bug fixes should be submitted on the lowest maintained branch where they apply.