Skip to content

[RateLimiter] controller attribute #52518

Open
@kbond

Description

@kbond

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()
{
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions