Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RateLimiter] Document the #[RateLimit] controller attribute#22300

Open
lacatoire wants to merge 5 commits into
symfony:8.1from
lacatoire:ratelimiter-controller-attribute-22287
Open

[RateLimiter] Document the #[RateLimit] controller attribute#22300
lacatoire wants to merge 5 commits into
symfony:8.1from
lacatoire:ratelimiter-controller-attribute-22287

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

Documents the new #[RateLimit] attribute introduced by symfony/symfony#63907: declarative rate limiting on controllers (or classes / invokables / functions) backed by framework.rate_limiter definitions, with an automatic 429 response carrying Retry-After when exceeded. Covers the four constructor arguments (limiter, key literal/Expression/Closure with the default IP+method+path key, tokens, methods) and the stacked-attributes case.

Fixes #22287

@carsonbot carsonbot added this to the 8.1 milestone Apr 30, 2026
@lacatoire lacatoire force-pushed the ratelimiter-controller-attribute-22287 branch from b430220 to 2d8e955 Compare April 30, 2026 08:34
Comment thread rate_limiter.rst Outdated
@lacatoire lacatoire force-pushed the ratelimiter-controller-attribute-22287 branch from 2d8e955 to 92bd1e7 Compare April 30, 2026 08:40
@lacatoire lacatoire force-pushed the ratelimiter-controller-attribute-22287 branch from 92bd1e7 to 6a15acc Compare April 30, 2026 08:41
Comment thread rate_limiter.rst Outdated
Comment thread rate_limiter.rst Outdated
Comment thread rate_limiter.rst Outdated
Comment thread rate_limiter.rst Outdated
Co-authored-by: Matthieu Lempereur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants