/** * @Route("/change_pass/{email}/{hash}") * @Method({"GET"}) */ public function change_pass($email, $hash) { $changepass = $this->service->change_pass($email, $hash); return new RedirectResponse('/'); }