/** * Removes the current user * * @return \Gems_User_UserLoader (continuation pattern) */ public function unsetCurrentUser() { // Remove if the currentUser still sees itself as the current user. if (self::$currentUser instanceof \Gems_User_User && self::$currentUser->isCurrentUser()) { self::$currentUser->unsetAsCurrentUser(false); } self::$currentUser = null; return $this; }