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] defaultlock_factory toauto#60099

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.3fromkbond:rate-limiter/auto-lock-factory
Apr 3, 2025

Conversation

kbond
Copy link
Member

@kbondkbond commentedMar 31, 2025
edited
Loading

QA
Branch?7.3
Bug fix?no
New feature?yes
Deprecations?no
Issuesn/a
LicenseMIT

Currently, when configuring a rate limiter and using the default configured lock factory (lock.factory), it fails ifsymfony/lock isn't installed. You have to explicitly set it tonull if you want to configure rate limiters without the lock component.

This changes the defaultlock_factory toauto then, at compile time, sets it tolock.factory ifsymfony/lock is installed andnull if not.

Copy link
Member

@weaverryanweaverryan left a comment

Choose a reason for hiding this comment

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

So it basically makessymfony/lock optional without needing to setlock_factory: null

Seems like an easy win

@fabpot
Copy link
Member

Thank you@kbond.

@fabpotfabpot merged commit59d8c63 intosymfony:7.3Apr 3, 2025
10 of 11 checks passed
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull requestApr 7, 2025
This PR was merged into the 7.3 branch.Discussion----------[RateLimiter] default `lock_factory` to `auto`Ref:symfony/symfony#60099Closes#20854.This is a small DX improvement so don't think it needs too much explanation.Commits-------eb5f908 [RateLimiter] default `lock_factory` to `auto`
@fabpotfabpot mentioned this pull requestMay 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@weaverryanweaverryanweaverryan approved these changes

@ycerutoycerutoyceruto approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

5 participants
@kbond@fabpot@weaverryan@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp