Skip to content

Commit 94c127b

Browse files
committed
Fix symfony 5.3 incompatibility
1 parent 04d6fad commit 94c127b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Domain/SecurityIdentityRetrievalStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getSecurityIdentities(TokenInterface $token)
7878

7979
private function isNotAuthenticated(TokenInterface $token): bool
8080
{
81-
if (\defined('\Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter::PUBLIC_ACCESS')) {
81+
if (method_exists($this->authenticationTrustResolver, 'isAuthenticated')) {
8282
return !$this->authenticationTrustResolver->isAuthenticated($token);
8383
}
8484

0 commit comments

Comments
 (0)