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