Skip to content

Commit 09b208f

Browse files
committed
Removed constructor parameters from AuthenticationTrustResolver
1 parent ec8b84b commit 09b208f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/security/authorization.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ level of authentication, i.e. is the user fully authenticated, or only based
104104
on a "remember-me" cookie, or even authenticated anonymously?::
105105

106106
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
107-
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
108-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
109107

110-
$trustResolver = new AuthenticationTrustResolver(AnonymousToken::class, RememberMeToken::class);
108+
$trustResolver = new AuthenticationTrustResolver();
111109

112110
$authenticatedVoter = new AuthenticatedVoter($trustResolver);
113111

0 commit comments

Comments
 (0)