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

Skip to content

Commit c7c3ee7

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Removed constructor parameters from AuthenticationTrustResolver
2 parents 81970b4 + c30ec24 commit c7c3ee7

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)