File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Filter options
src/Symfony/Component/Security/Http/Firewall Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Original file line number Diff line number Diff line change 17
17
use Symfony \Component \HttpKernel \KernelEvents ;
18
18
use Symfony \Component \Security \Core \Authentication \AuthenticationTrustResolver ;
19
19
use Symfony \Component \Security \Core \Authentication \AuthenticationTrustResolverInterface ;
20
+ use Symfony \Component \Security \Core \Authentication \Token \AnonymousToken ;
21
+ use Symfony \Component \Security \Core \Authentication \Token \RememberMeToken ;
20
22
use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
21
23
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
22
24
use Symfony \Component \Security \Core \Exception \UsernameNotFoundException ;
@@ -60,7 +62,7 @@ public function __construct(TokenStorageInterface $tokenStorage, array $userProv
60
62
$ this ->sessionKey = '_security_ ' .$ contextKey ;
61
63
$ this ->logger = $ logger ;
62
64
$ this ->dispatcher = $ dispatcher ;
63
- $ this ->trustResolver = $ trustResolver ?: new AuthenticationTrustResolver (' Symfony\Component\Security\Core\Authentication\Token\ AnonymousToken' , ' Symfony\Component\Security\Core\Authentication\Token\ RememberMeToken' );
65
+ $ this ->trustResolver = $ trustResolver ?: new AuthenticationTrustResolver (AnonymousToken::class, RememberMeToken::class );
64
66
}
65
67
66
68
/**
You can’t perform that action at this time.
0 commit comments