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