8000 [SecurityBundle] Fix `container.build_hash` parameter binding · symfony/symfony@ddef55e · GitHub
[go: up one dir, main page]

Skip to content

Commit ddef55e

Browse files
[SecurityBundle] Fix container.build_hash parameter binding
1 parent 54d6c0b commit ddef55e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\DependencyInjection\ChildDefinition;
1717
use Symfony\Component\DependencyInjection\ContainerBuilder;
1818
use Symfony\Component\DependencyInjection\Exception\LogicException;
19+
use Symfony\Component\DependencyInjection\Parameter;
1920
use Symfony\Component\DependencyInjection\Reference;
2021
use Symfony\Component\HttpFoundation\RateLimiter\RequestRateLimiterInterface;
2122
use Symfony\Component\Lock\LockInterface;
@@ -76,7 +77,7 @@ public function createAuthenticator(ContainerBuilder $container, string $firewal
7677
$container->register($config['limiter'] = 'security.login_throttling.'.$firewallName.'.limiter', DefaultLoginRateLimiter::class)
7778
->addArgument(new Reference('limiter.'.$globalId))
7879
->addArgument(new Reference('limiter.'.$localId))
79-
->addArgument('%container.build_hash%')
80+
->addArgument(new Parameter('container.build_hash'))
8081
;
8182
}
8283

0 commit comments

Comments
 (0)
0