/** * Returns true, if the user has been authenticated. * * @return boolean */ public function isUserAuthenticated() { return $this->authenticationInfo instanceof Authentication\Info && $this->authenticationInfo->isAuthenticated(); }