Closed
Description
Issue with page: https://symfony.com/doc/current/security/expressions.html
In https://symfony.com/doc/current/security.html#checking-to-see-if-a-user-is-logged-in-is-authenticated-fully docs are provide information, that IS_AUTHENTICATED_ANONYMOUSLY
attribute are granted for anon. tokens and fully authenticated.
IS_AUTHENTICATED_ANONYMOUSLY: All users (even anonymous ones)
On https://symfony.com/doc/current/security/expressions.html we see, that is_anonymous()
expression are the same as IS_AUTHENTICATED_ANONYMOUSLY
.
is_anonymous
Equal to using IS_AUTHENTICATED_ANONYMOUSLY with the isGranted() function.
But in code we can see, that is_anonymous()
returns true
only for anon. tokens.
return $variables['trust_resolver']->isAnonymous($variables['token']);