Skip to content

Commit c3fd187

Browse files
committed
minor #1842 don't set logout_on_user_change on Symfony 4.1 (xabbuh)
This PR was merged into the 2.3-dev branch. Discussion ---------- don't set logout_on_user_change on Symfony 4.1 Commits ------- 0538e3b don't set logout_on_user_change on Symfony 4.1
2 parents 153b5f6 + 0538e3b commit c3fd187

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Functional/app/Configuration/security.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
use Symfony\Component\Security\Core\Security;
4+
use Symfony\Component\Security\Http\Controller\UserValueResolver;
45

56
$defaultFirewall = [
67
'anonymous' => null,
78
];
89

9-
if (method_exists(Security::class, 'getUser')) {
10+
if (method_exists(Security::class, 'getUser') && !class_exists(UserValueResolver::class)) {
1011
$defaultFirewall['logout_on_user_change'] = true;
1112
}
1213

0 commit comments

Comments
 (0)