You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #60099 [FrameworkBundle][RateLimiter] default lock_factory to auto (kbond)
This PR was merged into the 7.3 branch.
Discussion
----------
[FrameworkBundle][RateLimiter] default `lock_factory` to `auto`
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | n/a
| License | MIT
Currently, when configuring a rate limiter and using the default configured lock factory (`lock.factory`), it fails if `symfony/lock` isn't installed. You have to explicitly set it to `null` if you want to configure rate limiters without the lock component.
This changes the default `lock_factory` to `auto` then, at compile time, sets it to `lock.factory` if `symfony/lock` is installed and `null` if not.
Commits
-------
9689e5e [FrameworkBundle][RateLimiter] default `lock_factory` to `auto`
0 commit comments