Skip to content

Commit 0538e3b

Browse files
committed
don't set logout_on_user_change on Symfony 4.1
1 parent 153b5f6 commit 0538e3b

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)