|
|
|
@ -18,11 +18,6 @@ use model\ValidationException;
|
|
|
|
|
class InviteController
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public function __construct(Connection $con)
|
|
|
|
|
{
|
|
|
|
|
// TODO
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function defaultAction(array $params) {
|
|
|
|
|
global $twig, $dVue;
|
|
|
|
|
|
|
|
|
@ -94,10 +89,10 @@ class InviteController
|
|
|
|
|
$idJeu = $configurationJeu->getJeu()->getId();
|
|
|
|
|
switch($idJeu){
|
|
|
|
|
case 2:
|
|
|
|
|
new TODELETEScienceQuizzController($role, $configurationJeu);
|
|
|
|
|
new _TO_DELETE__ScienceQuizzController($role, $configurationJeu);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
new TODELETEPenduController($role, $configurationJeu);
|
|
|
|
|
new _TO_DELETE__PenduController($role, $configurationJeu);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
throw new Exception("Jeu non défini !");
|
|
|
|
|