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
minor #47964 [FrameworkBundle] Deprecated the registerRateLimiter() method (jderusse)
This PR was merged into the 6.2 branch.
Discussion
----------
[FrameworkBundle] Deprecated the `registerRateLimiter()` method
| Q | A
| ------------- | ---
| Branch? | 6.2 for features
| Bug fix? | no
| New feature? | yes
| Deprecations? | yes
| Tickets |
| License | MIT
| Doc PR |
This PR deprecated the `public static` method `FrameworkExtension::registerRateLimiter` method
This method is used by the `LoginThrottlingFactory` class (from securityBundle`.
It adds a tight coupling between the 2 bundles, and also exposes a public static (non-internal) method in the `FrameworkExtension`.
Being `static` also prevent non-static call in the frameworkExtension method, and prevent such feature: #45569
Commits
-------
ee8b50532c [FrameworkBundle] Deprecated the registerRateLimiter method
@@ -60,20 +62,16 @@ public function createAuthenticator(ContainerBuilder $container, string $firewal
60
62
}
61
63
62
64
if (!isset($config['limiter'])) {
63
-
if (!class_exists(FrameworkExtension::class) || !method_exists(FrameworkExtension::class, 'registerRateLimiter')) {
64
-
thrownew \LogicException('You must either configure a rate limiter for "security.firewalls.'.$firewallName.'.login_throttling" or install symfony/framework-bundle:^5.2.');
0 commit comments