Skip to content

Commit c30ec24

Browse files
committed
minor #12721 Removed constructor parameters from AuthenticationTrustResolver (jzawadzki)
This PR was submitted for the 5.0 branch but it was merged into the 4.3 branch instead (closes #12721). Discussion ---------- Removed constructor parameters from AuthenticationTrustResolver As per symfony/symfony#26981 there are no constructor arguments in `AuthenticationTrustResolver`. Commits ------- f046117 Removed constructor parameters from AuthenticationTrustResolver
2 parents a9aa86a + f046117 commit c30ec24

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)