Skip to content

Commit 60281c0

Browse files
[Security] Fix error with lock_factory in login_throttling
1 parent b33382c commit 60281c0

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)