From 619d219b15a20de91ca96ad2b92c078126248616 Mon Sep 17 00:00:00 2001 From: mckmonster Date: Sun, 21 Jul 2024 12:11:46 +0200 Subject: [PATCH] Fix commands --- commands/CreateFormsCommand.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/CreateFormsCommand.php b/commands/CreateFormsCommand.php index e587cd0..cc1c81d 100644 --- a/commands/CreateFormsCommand.php +++ b/commands/CreateFormsCommand.php @@ -22,7 +22,8 @@ class CreateFormsCommand extends Command { parent::__construct(); $this->wiki = $wiki; - $meeo_config = $this->wiki->params->get('meeo'); + $params = $this->wiki->services->get(ParameterBagInterface::class); + $meeo_config = $params->get('meeo'); $this->eleveFormId = $meeo_config['elevesFormId']; } @@ -75,8 +76,8 @@ class CreateFormsCommand extends Command "bn_sem_type" => "", "bn_sem_use_template" => "1", "bn_template" => <<eleveFormId***Elève*** *** *** *** *** ***1*** *** *** * *** * *** *** *** *** +titre***Absence : {{bf_eleve}} - {{bf_date_debut}}***Titre Automatique*** +listefiche***$this->eleveFormId***Elève*** *** *** ***bf_eleve*** ***1*** *** *** * *** * *** *** *** *** listedatedeb***bf_date_debut***Debut*** *** ***today*** *** ***1*** *** *** * *** * *** *** *** *** listedatedeb***bf_date_fin***Fin*** *** ***today*** *** ***1*** *** *** * *** * *** *** *** *** textelong***bf_commentaire***Commentaire*** *** *** *** ***wiki***0*** *** *** * *** * *** *** *** ***