EasyCorp\Bundle\EasySecurityBundle\Security\Security::isAuthenticated PHP Method

isAuthenticated() public method

Returns true if the current application user (or the optionally given user) is authenticated in any way (because they have introduced their credentials (username and password) or they have been remembered).
public isAuthenticated ( null $user = null ) : boolean
$user null
return boolean
    public function isAuthenticated($user = null)
    {
        $user = $user ?: $this->getUser();
        return $this->isGranted('IS_AUTHENTICATED_FULLY', $user) || $this->isGranted('IS_AUTHENTICATED_REMEMBERED', $user);
    }