/** * @return \Symfony\Component\HttpFoundation\Response */ public function doLogout() { $this->userOperator->logout(); return RedirectResponse::create($this->pageStack->getCurrentUrl()); }