getJeu()->getId(); switch($idJeu){ case 2: new _TO_DELETE__ScienceQuizzController($role, $configurationJeu); break; case 3: new _TO_DELETE__PenduController($role, $configurationJeu); break; default: throw new Exception("Jeu non défini !"); } } }else{ header("Location: ".$basePath); } } }