/** * @return \Mouf\Security\UserService\UserInterface|null */ public function getUser() { return $this->userService->getLoggedUser(); }
/** * Session destroy. * * @Logged * @URL /disconnect */ public function disconnect() { $this->userService->logoff(); header('Location:' . ROOT_URL); }