Loading module/Application/config/offre-formation.config.php +1 −1 Changes for module/Application/config/offre-formation.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -480,12 +480,12 @@ return [ ], 'controllers' => [ 'invokables' => [ 'Application\Controller\OffreFormation' => Controller\OffreFormationController::class, 'Application\Controller\OffreFormation\Etape' => Controller\OffreFormation\EtapeController::class, 'Application\Controller\OffreFormation\Modulateur' => Controller\OffreFormation\ModulateurController::class, 'Application\Controller\OffreFormation\EtapeCentreCout' => Controller\OffreFormation\EtapeCentreCoutController::class, ], 'factories' => [ 'Application\Controller\OffreFormation' => Controller\Factory\OffreFormationControllerFactory::class, 'Application\Controller\OffreFormation\ElementPedagogique' => Controller\OffreFormation\Factory\ElementPedagogiqueControllerFactory::class, ], ], Loading module/Application/src/Controller/Factory/OffreFormationControllerFactory.php +29 Changes for module/Application/src/Controller/Factory/OffreFormationControllerFactory.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /* * @author JORIOT Florian <florian.joriot at unicaen.fr> */ namespace Application\Controller\Factory; use Application\Controller\OffreFormationController; use Psr\Container\ContainerInterface; use UnicaenImport\Service\SchemaService; class OffreFormationControllerFactory { /** * Create controller * * @param ContainerInterface $container * * @return OffreFormationController */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $renderer = $container->get('ViewRenderer'); $controller = new OffreFormationController($renderer); $controller->setServiceSchema($container->get(SchemaService::class)); return $controller; } } No newline at end of file module/Application/src/Controller/OffreFormation/ElementPedagogiqueController.php +4 −3 Changes for module/Application/src/Controller/OffreFormation/ElementPedagogiqueController.php: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,7 @@ use Application\Service\Traits\ElementPedagogiqueServiceAwareTrait; use Application\Service\Traits\ContextServiceAwareTrait; use Application\Service\Traits\StructureServiceAwareTrait; use Application\Service\Traits\VolumeHoraireEnsServiceAwareTrait; use UnicaenImport\Service\Traits\SchemaServiceAwareTrait; /** * Description of ElementPedagogiqueController * Loading @@ -34,6 +33,7 @@ class ElementPedagogiqueController extends AbstractController use CentreCoutEpServiceAwareTrait; use ElementPedagogiqueSynchronisationFormAwareTrait; use StructureServiceAwareTrait; use SchemaServiceAwareTrait; public function voirAction() Loading @@ -44,8 +44,9 @@ class ElementPedagogiqueController extends AbstractController ]); $element = $this->getEvent()->getParam('elementPedagogique'); $title = $element->getLibelle() . ' (' . $element->getCode() . ')'; $serviceSchema = $this->getServiceSchema(); return compact('element', 'title'); return compact('element', 'title', 'serviceSchema'); } Loading module/Application/src/Controller/OffreFormation/Factory/ElementPedagogiqueControllerFactory.php +5 −1 Changes for module/Application/src/Controller/OffreFormation/Factory/ElementPedagogiqueControllerFactory.php: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,7 +3,9 @@ namespace Application\Controller\OffreFormation\Factory; use Application\Controller\OffreFormation\ElementPedagogiqueController; use Application\Controller\OffreFormationController; use Psr\Container\ContainerInterface; use UnicaenImport\Service\SchemaService; /** Loading @@ -16,7 +18,9 @@ class ElementPedagogiqueControllerFactory public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $controller = new ElementPedagogiqueController; $renderer = $container->get('ViewRenderer'); $controller = new ElementPedagogiqueController($renderer); $controller->setServiceSchema($container->get(SchemaService::class)); return $controller; } Loading module/Application/src/Controller/OffreFormationController.php +3 −1 Changes for module/Application/src/Controller/OffreFormationController.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ use Application\Service\Traits\NiveauEtapeServiceAwareTrait; use Application\Service\Traits\OffreFormationServiceAwareTrait; use Application\Service\Traits\StructureServiceAwareTrait; use UnicaenApp\View\Model\CsvModel; use UnicaenImport\Service\Traits\SchemaServiceAwareTrait; /** Loading @@ -37,6 +38,7 @@ class OffreFormationController extends AbstractController use AnneeServiceAwareTrait; use ReconductionProcessusAwareTrait; use OffreFormationServiceAwareTrait; use SchemaServiceAwareTrait; public function indexAction() Loading Loading @@ -65,7 +67,6 @@ class OffreFormationController extends AbstractController if (($element = $this->params()->fromPost('element')) && isset($element['id'])) { $form->get('element')->setValue($element); } return [ 'structures' => $structures, 'niveaux' => $niveaux, Loading @@ -76,6 +77,7 @@ class OffreFormationController extends AbstractController 'etape' => $etape, 'serviceEtape' => $this->getServiceEtape(), // pour déterminer les droits 'serviceElement' => $this->getServiceElementPedagogique(), // pour déterminer les droits 'serviceSchema' => $this->getServiceSchema(), ]; } Loading Loading
module/Application/config/offre-formation.config.php +1 −1 Changes for module/Application/config/offre-formation.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -480,12 +480,12 @@ return [ ], 'controllers' => [ 'invokables' => [ 'Application\Controller\OffreFormation' => Controller\OffreFormationController::class, 'Application\Controller\OffreFormation\Etape' => Controller\OffreFormation\EtapeController::class, 'Application\Controller\OffreFormation\Modulateur' => Controller\OffreFormation\ModulateurController::class, 'Application\Controller\OffreFormation\EtapeCentreCout' => Controller\OffreFormation\EtapeCentreCoutController::class, ], 'factories' => [ 'Application\Controller\OffreFormation' => Controller\Factory\OffreFormationControllerFactory::class, 'Application\Controller\OffreFormation\ElementPedagogique' => Controller\OffreFormation\Factory\ElementPedagogiqueControllerFactory::class, ], ], Loading
module/Application/src/Controller/Factory/OffreFormationControllerFactory.php +29 Changes for module/Application/src/Controller/Factory/OffreFormationControllerFactory.php: 29 added lines, 0 removed lines. Original line number Diff line number Diff line <?php /* * @author JORIOT Florian <florian.joriot at unicaen.fr> */ namespace Application\Controller\Factory; use Application\Controller\OffreFormationController; use Psr\Container\ContainerInterface; use UnicaenImport\Service\SchemaService; class OffreFormationControllerFactory { /** * Create controller * * @param ContainerInterface $container * * @return OffreFormationController */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $renderer = $container->get('ViewRenderer'); $controller = new OffreFormationController($renderer); $controller->setServiceSchema($container->get(SchemaService::class)); return $controller; } } No newline at end of file
module/Application/src/Controller/OffreFormation/ElementPedagogiqueController.php +4 −3 Changes for module/Application/src/Controller/OffreFormation/ElementPedagogiqueController.php: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -16,8 +16,7 @@ use Application\Service\Traits\ElementPedagogiqueServiceAwareTrait; use Application\Service\Traits\ContextServiceAwareTrait; use Application\Service\Traits\StructureServiceAwareTrait; use Application\Service\Traits\VolumeHoraireEnsServiceAwareTrait; use UnicaenImport\Service\Traits\SchemaServiceAwareTrait; /** * Description of ElementPedagogiqueController * Loading @@ -34,6 +33,7 @@ class ElementPedagogiqueController extends AbstractController use CentreCoutEpServiceAwareTrait; use ElementPedagogiqueSynchronisationFormAwareTrait; use StructureServiceAwareTrait; use SchemaServiceAwareTrait; public function voirAction() Loading @@ -44,8 +44,9 @@ class ElementPedagogiqueController extends AbstractController ]); $element = $this->getEvent()->getParam('elementPedagogique'); $title = $element->getLibelle() . ' (' . $element->getCode() . ')'; $serviceSchema = $this->getServiceSchema(); return compact('element', 'title'); return compact('element', 'title', 'serviceSchema'); } Loading
module/Application/src/Controller/OffreFormation/Factory/ElementPedagogiqueControllerFactory.php +5 −1 Changes for module/Application/src/Controller/OffreFormation/Factory/ElementPedagogiqueControllerFactory.php: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,7 +3,9 @@ namespace Application\Controller\OffreFormation\Factory; use Application\Controller\OffreFormation\ElementPedagogiqueController; use Application\Controller\OffreFormationController; use Psr\Container\ContainerInterface; use UnicaenImport\Service\SchemaService; /** Loading @@ -16,7 +18,9 @@ class ElementPedagogiqueControllerFactory public function __invoke(ContainerInterface $container, $requestedName, $options = null) { $controller = new ElementPedagogiqueController; $renderer = $container->get('ViewRenderer'); $controller = new ElementPedagogiqueController($renderer); $controller->setServiceSchema($container->get(SchemaService::class)); return $controller; } Loading
module/Application/src/Controller/OffreFormationController.php +3 −1 Changes for module/Application/src/Controller/OffreFormationController.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ use Application\Service\Traits\NiveauEtapeServiceAwareTrait; use Application\Service\Traits\OffreFormationServiceAwareTrait; use Application\Service\Traits\StructureServiceAwareTrait; use UnicaenApp\View\Model\CsvModel; use UnicaenImport\Service\Traits\SchemaServiceAwareTrait; /** Loading @@ -37,6 +38,7 @@ class OffreFormationController extends AbstractController use AnneeServiceAwareTrait; use ReconductionProcessusAwareTrait; use OffreFormationServiceAwareTrait; use SchemaServiceAwareTrait; public function indexAction() Loading Loading @@ -65,7 +67,6 @@ class OffreFormationController extends AbstractController if (($element = $this->params()->fromPost('element')) && isset($element['id'])) { $form->get('element')->setValue($element); } return [ 'structures' => $structures, 'niveaux' => $niveaux, Loading @@ -76,6 +77,7 @@ class OffreFormationController extends AbstractController 'etape' => $etape, 'serviceEtape' => $this->getServiceEtape(), // pour déterminer les droits 'serviceElement' => $this->getServiceElementPedagogique(), // pour déterminer les droits 'serviceSchema' => $this->getServiceSchema(), ]; } Loading