Firewall/AnonymousRoleListener.php
private function isAnonymous()
    {
        $token = $this->tokenStorage->getToken();

        return null === $token
            || $this->trustResolver->isAnonymous($token);
    }
private function isAnonymous()
    {
        $token = $this->tokenStorage->getToken();

        return null === $token
            || $this->trustResolver->isAnonymous($token);
    }
private function isAnonymous ( ) { $ token = $ this -> tokenStorage -> getToken ( ) ; return null === $ token || $ this -> trustResolver -> isAnonymous ( $ token ) ; }
Check if the token is a anonymous token.

@return bool
Check if the token is a anonymous token .