public function indexAction() { $user = $this->auth->getUser(); $error = false; if ($this->params()->fromPost('confirm')) { if ($this->dependencies->removeItems($user)) { $this->auth->clearIdentity(); $user->setStatus(Status::INACTIVE); return $this->redirect()->toRoute('lang'); } else { $error = true; } } return ['lists' => $this->dependencies->getLists(), 'user' => $user, 'limit' => 20, 'error' => $error]; }