Skip to content

Commit

Permalink
[Security] Fix error with lock_factory in login_throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteContreras committed Aug 11, 2023
1 parent 6d11c7a commit 30b1269
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -98,10 +98,7 @@ private function registerRateLimiter(ContainerBuilder $container, string $name,
if (!interface_exists(LockInterface::class)) {
throw new LogicException(sprintf('Rate limiter "%s" requires the Lock component to be installed. Try running "composer require symfony/lock".', $name));
}
if (!$container->hasDefinition('lock.factory.abstract')) {
throw new LogicException(sprintf('Rate limiter "%s" requires the Lock component to be configured.', $name));
}


$limiter->replaceArgument(2, new Reference($limiterConfig['lock_factory']));
}
unset($limiterConfig['lock_factory']);
Expand Down

0 comments on commit 30b1269

Please sign in to comment.