EasyCorp\Bundle\EasySecurityBundle\Security\Security::isAnonymous PHP Метод

isAnonymous() публичный Метод

Returns true if the current application user (or the optionally given user) is anonymous. This behaves differently than Symfony built-in methods and it returns true only when the user is really anonymous.
public isAnonymous ( null $user = null ) : boolean
$user null
Результат boolean
    public function isAnonymous($user = null)
    {
        return !$this->isAuthenticated($user);
    }