public function unconfirmedAction() { $user = $this->getUser(); if (!$user) { return $this->redirect($this->generateUrl('login')); } return $this->redirect($this->generateUrl('myprofile')); }