Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle][RateLimiter] addrate_limiter tag to rate limiter services#53091

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.1fromkbond:rate-limiter-tag
Dec 19, 2023

Conversation

@kbond
Copy link
Member

QA
Branch?7.1
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix#52516
LicenseMIT

This will allow creating tagged iterators/locators containing all registered rate limiters (indexed by their name).

@carsonbotcarsonbot added this to the7.1 milestoneDec 15, 2023
@carsonbotcarsonbot changed the title[RateLimiter][FrameworkBundle] addrate_limiter tag to rate limiter services[FrameworkBundle][RateLimiter] addrate_limiter tag to rate limiter servicesDec 15, 2023

$limiter =$container->setDefinition($limiterId ='limiter.'.$name,newChildDefinition('limiter'));
$limiter =$container->setDefinition($limiterId ='limiter.'.$name,newChildDefinition('limiter'))
->addTag('rate_limiter', ['name' =>$name]);
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I thinkname is the standard tag index we use now or am I mistaken?

@fabpot
Copy link
Member

Thank you@kbond.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.1

Development

Successfully merging this pull request may close these issues.

[RateLimiter][FrameworkBundle] add a tag to configured rate limiters

4 participants

@kbond@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp