Skip to content

Commit 3000cce

Browse files
committed
bug #51359 [Security] Fix error with lock_factory in login_throttling (BaptisteContreras)
This PR was merged into the 6.3 branch. Discussion ---------- [Security] Fix error with lock_factory in login_throttling | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #51347 | License | MIT | Doc PR | Remove incorrect check for Lock configuration in **Security Bundle** which leads to an exception when using lock_factory of the **login_throttling** (as explained in #51347) Commits ------- a22e891812 [Security] Fix error with lock_factory in login_throttling
2 parents b9db7c6 + 60281c0 commit 3000cce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

DependencyInjection/Security/Factory/LoginThrottlingFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ private function registerRateLimiter(ContainerBuilder $container, string $name,
9898
if (!interface_exists(LockInterface::class)) {
9999
throw new LogicException(sprintf('Rate limiter "%s" requires the Lock component to be installed. Try running "composer require symfony/lock".', $name));
100100
}
101-
if (!$container->hasDefinition('lock.factory.abstract')) {
102-
throw new LogicException(sprintf('Rate limiter "%s" requires the Lock component to be configured.', $name));
103-
}
104101

105102
$limiter->replaceArgument(2, new Reference($limiterConfig['lock_factory']));
106103
}

0 commit comments

Comments
 (0)