From dec61eef8319124eb57e4fbef88b2f9fdf7cc95a Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Mon, 21 Nov 2022 09:13:50 +0100
Subject: [PATCH] =?UTF-8?q?Correction=20d=C3=A9claration=20des=20factory?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 config/autoload/unicaen-authentification.global.php           | 4 +++-
 module/Formation/config/module.config.php                     | 2 +-
 .../Event/SessionCloture/SessionClotureEventFactory.php       | 3 +--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/config/autoload/unicaen-authentification.global.php b/config/autoload/unicaen-authentification.global.php
index e9a0427de..1da9affec 100644
--- a/config/autoload/unicaen-authentification.global.php
+++ b/config/autoload/unicaen-authentification.global.php
@@ -17,7 +17,9 @@ return [
          * Attribut LDAP utilisé pour le username des utilisateurs
          * A personnaliser au besoin
          */
-        //'ldap_username' => 'supannaliaslogin',
+//        'ldap_username' => 'uid',
+//        'ldap_username' => 'supannaliaslogin',
+
     ],
 ];
 
diff --git a/module/Formation/config/module.config.php b/module/Formation/config/module.config.php
index ab5581c12..cbe9560a8 100755
--- a/module/Formation/config/module.config.php
+++ b/module/Formation/config/module.config.php
@@ -8,10 +8,10 @@ use Formation\Event\Convocation\ConvocationEvent;
 use Formation\Event\Convocation\ConvocationEventFactory;
 use Formation\Event\DemandeRetour\DemandeRetourEvent;
 use Formation\Event\DemandeRetour\DemandeRetourEventFactory;
-use Formation\Event\DemandeRetour\SessionClotureEventFactory;
 use Formation\Event\InscriptionCloture\InscriptionClotureEvent;
 use Formation\Event\InscriptionCloture\InscriptionClotureEventFactory;
 use Formation\Event\SessionCloture\SessionClotureEvent;
+use Formation\Event\SessionCloture\SessionClotureEventFactory;
 use Formation\Provider\Privilege\FormationPrivileges;
 use Formation\Service\Evenement\NotificationFormationsOuvertesService;
 use Formation\Service\Evenement\NotificationFormationsOuvertesServiceFactory;
diff --git a/module/Formation/src/Formation/Event/SessionCloture/SessionClotureEventFactory.php b/module/Formation/src/Formation/Event/SessionCloture/SessionClotureEventFactory.php
index c1144c6e6..641b362cc 100644
--- a/module/Formation/src/Formation/Event/SessionCloture/SessionClotureEventFactory.php
+++ b/module/Formation/src/Formation/Event/SessionCloture/SessionClotureEventFactory.php
@@ -1,9 +1,8 @@
 <?php
 
-namespace Formation\Event\DemandeRetour;
+namespace Formation\Event\SessionCloture;
 
 use Doctrine\ORM\EntityManager;
-use Formation\Event\SessionCloture\SessionClotureEvent;
 use Formation\Provider\Parametre\FormationParametres;
 use Formation\Service\FormationInstance\FormationInstanceService;
 use Psr\Container\ContainerExceptionInterface;
-- 
GitLab