Commit b611d6e6 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Amélioration de l'import lagaf

parent e3aad028
Loading
Loading
Loading
Loading
+1 −2
Changes for module/Application/src/Application/Entity/Db/Traits/HasSourceTrait.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,8 +7,7 @@ use UnicaenDbImport\Entity\Db\Source;
trait HasSourceTrait {

    private ?Source $source = null;
    /** @var string */
    private $idSource;
    private ?string $idSource = null;

    /**
     * @return Source|null
+11 −0
Changes for module/Formation/config/merged/import-lagaf.config.php: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ return [
                        'inscription',
                        'presence',
                        'element',
                        'theme',
                    ],
                    'privileges' => [
                        LagafPrivileges::IMPORT_LAGAF,
@@ -69,6 +70,16 @@ return [
                                    ]
                                ],
                            ],
                            'theme' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/theme[/:id]',
                                    'defaults' => [
                                        'controller' => ImportationLagafController::class,
                                        'action' => 'theme',
                                    ]
                                ],
                            ],
                            'session' => [
                                'type' => Segment::class,
                                'options' => [
+157 −105

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Changes for module/Formation/src/Formation/Controller/ImportationLagafControllerFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ namespace Formation\Controller;
         /**
          * @var SourceService $sourceService
          */
         $entityManager = $container->get('doctrine.entitymanger.orm_default');
         $entityManager = $container->get('doctrine.entitymanager.orm_default');
         $sourceService = $container->get(SourceService::class);
         $sourceService->setEntityManager($entityManager);
         $lagaf = $sourceService->getRepository()->findOneBy(['code' => HasSourceInterface::SOURCE_LAGAF]);
+3 −0
Changes for module/Formation/src/Formation/Controller/SeanceController.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -10,12 +10,14 @@ use Laminas\Http\Request;
use Laminas\Http\Response;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
use UnicaenDbImport\Entity\Db\Service\Source\SourceServiceAwareTrait;

class SeanceController extends AbstractActionController
{
    use FormationInstanceServiceAwareTrait;
    use SeanceServiceAwareTrait;
    use SeanceFormAwareTrait;
    use SourceServiceAwareTrait;

    public function ajouterJourneeAction() : ViewModel
    {
@@ -34,6 +36,7 @@ class SeanceController extends AbstractActionController
            $form->setData($data);
            if ($form->isValid()) {
                $this->getSeanceService()->create($journee);

            }
        }

Loading