Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a428a9

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Removed constructor parameters from AuthenticationTrustResolver
2 parents c850e8c + c7c3ee7 commit 3a428a9

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)