Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Open
Labels
Description
Description
Using a controller attribute to configure a rate limit would be useful. By default, the key$request->getClientIp()
but perhaps we could use the expression language for more advanced use-cases. Would require#52516.
This issue is a todo for myself to work on for 7.1.
Example
#[RateLimit('configured_rate_limiter', methods:'POST')]publicfunctionsomeAction(){// ...}