Skip to content

Commit b5b5c52

Browse files
Merge branch '4.1'
* 4.1: [DependencyInjection] Fix tags on multiple decorated service fix merge SCA: reverted code style changes SCA: reverted code style changes SCA: applied requested code style changes SCA: simplify some ifs in favour of null coalescing operator
2 parents 26077ad + 1163903 commit b5b5c52

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

DependencyInjection/SecurityExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,7 @@ private function createFirewall(ContainerBuilder $container, $id, $firewall, &$a
312312
$contextKey = null;
313313
// Context serializer listener
314314
if (false === $firewall['stateless']) {
315-
$contextKey = $id;
316-
if (isset($firewall['context'])) {
317-
$contextKey = $firewall['context'];
318-
}
319-
315+
$contextKey = $firewall['context'] ?? $id;
320316
$listeners[] = new Reference($this->createContextListener($container, $contextKey));
321317
$sessionStrategyId = 'security.authentication.session_strategy';
322318
} else {

0 commit comments

Comments
 (0)