Skip to content

Commit 9a208c6

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

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
@@ -321,7 +321,7 @@ private function createFirewalls(array $config, ContainerBuilder $container): vo
321321
$authenticators[$name] = ServiceLocatorTagPass::register($container, $firewallAuthenticatorRefs);
322322
}
323323
$contextId = 'security.firewall.map.context.'.$name;
324-
$isLazy = !$firewall['stateless'] && (!empty($firewall['anonymous']['lazy']) || $firewall['lazy']);
324+
$isLazy = !$firewall['stateless'] && $firewall['lazy'];
325325
$context = new ChildDefinition($isLazy ? 'security.firewall.lazy_context' : 'security.firewall.context');
326326
$context = $container->setDefinition($contextId, $context);
327327
$context
@@ -683,7 +683,7 @@ private function getUserProvider(ContainerBuilder $container, string $id, array
683683
return $this->createMissingUserProvider($container, $id, $factoryKey);
684684
}
685685

686-
if ('remember_me' === $factoryKey || 'anonymous' === $factoryKey) {
686+
if ('remember_me' === $factoryKey) {
687687
return 'security.user_providers';
688688
}
689689

0 commit comments

Comments
 (0)