Skip to content

Commit d06b46b

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: skip interactive questions asked by Composer [SecurityBundle] Remove `AnonymousFactory` leftovers [Translation] Validate of pt_BR translation by a native speaker
2 parents 5431c40 + f86e8d4 commit d06b46b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private function createFirewalls(array $config, ContainerBuilder $container): vo
319319
$authenticators[$name] = ServiceLocatorTagPass::register($container, $firewallAuthenticatorRefs);
320320
}
321321
$contextId = 'security.firewall.map.context.'.$name;
322-
$isLazy = !$firewall['stateless'] && (!empty($firewall['anonymous']['lazy']) || $firewall['lazy']);
322+
$isLazy = !$firewall['stateless'] && $firewall['lazy'];
323323
$context = new ChildDefinition($isLazy ? 'security.firewall.lazy_context' : 'security.firewall.context');
324324
$context = $container->setDefinition($contextId, $context);
325325
$context
@@ -681,7 +681,7 @@ private function getUserProvider(ContainerBuilder $container, string $id, array
681681
return $this->createMissingUserProvider($container, $id, $factoryKey);
682682
}
683683

684-
if ('remember_me' === $factoryKey || 'anonymous' === $factoryKey) {
684+
if ('remember_me' === $factoryKey) {
685685
return 'security.user_providers';
686686
}
687687

0 commit comments

Comments
 (0)