public function recordLogout(UserInterface $user);
/** * Logs the current user out. * * @param \Cartalyst\Sentinel\Users\UserInterface $user * @param bool $everywhere * @return bool */ public function logout(UserInterface $user = null, $everywhere = false) { $user = $user ?: $this->getUser(); if ($user === null) { return true; } $method = $everywhere === true ? 'flush' : 'forget'; $this->persistences->{$method}($user); return $this->users->recordLogout($user); }