Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RateLimiter] controller attribute #52518

Open
kbond opened this issue Nov 9, 2023 · 1 comment
Open

[RateLimiter] controller attribute #52518

kbond opened this issue Nov 9, 2023 · 1 comment

Comments

@kbond
Copy link
Member

kbond commented Nov 9, 2023

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')]
public function someAction()
{
    // ...
}
@kbond kbond added this to the 7.1 milestone Nov 9, 2023
@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants