[RateLimiter] Document the #[RateLimit] controller attribute#22300
Open
lacatoire wants to merge 5 commits into
Open
[RateLimiter] Document the #[RateLimit] controller attribute#22300lacatoire wants to merge 5 commits into
lacatoire wants to merge 5 commits into
Conversation
b430220 to
2d8e955
Compare
MrYamous
reviewed
Apr 30, 2026
2d8e955 to
92bd1e7
Compare
92bd1e7 to
6a15acc
Compare
MrYamous
reviewed
May 1, 2026
MrYamous
reviewed
May 1, 2026
MrYamous
reviewed
May 16, 2026
Co-authored-by: Matthieu Lempereur <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the new
#[RateLimit]attribute introduced by symfony/symfony#63907: declarative rate limiting on controllers (or classes / invokables / functions) backed byframework.rate_limiterdefinitions, with an automatic 429 response carryingRetry-Afterwhen exceeded. Covers the four constructor arguments (limiter,keyliteral/Expression/Closure with the default IP+method+path key,tokens,methods) and the stacked-attributes case.Fixes #22287