Loading module/Application/src/Application/Service/Structure/StructureService.php +5 −0 Changes for module/Application/src/Application/Service/Structure/StructureService.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Application\Service\Source\SourceServiceAwareTrait; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\OptimisticLockException; use Import\Service\Traits\SynchroServiceAwareTrait; use UnicaenApp\Exception\RuntimeException; use Webmozart\Assert\Assert; use DoctrineModule\Stdlib\Hydrator\DoctrineObject; Loading @@ -28,6 +29,7 @@ use DoctrineModule\Stdlib\Hydrator\DoctrineObject; class StructureService extends BaseService { use SourceServiceAwareTrait; use SynchroServiceAwareTrait; /** * @return EntityRepository Loading Loading @@ -131,6 +133,9 @@ class StructureService extends BaseService throw new RuntimeException("Erreur rencontrée lors de l'enregistrement des substitutions", null, $e); } $this->synchroService->addService('these'); $this->synchroService->synchronize(); return $structureConcreteCible; } Loading module/Application/src/Application/Service/Structure/StructureServiceFactory.php +7 −1 Changes for module/Application/src/Application/Service/Structure/StructureServiceFactory.php: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Application\Service\Structure; use Application\Service\Source\SourceService; use Import\Service\SynchroService; use Zend\ServiceManager\ServiceLocatorInterface as ContainerInterface; /** Loading @@ -19,11 +20,16 @@ class StructureServiceFactory */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { /** @var SourceService $sourceService */ /** * @var SourceService $sourceService * @var SynchroService $synchroService */ $sourceService = $container->get(SourceService::class); $synchroService = $container->get(SynchroService::class); $service = new StructureService; $service->setSourceService($sourceService); $service->setSynchroService($synchroService); return $service; } Loading Loading
module/Application/src/Application/Service/Structure/StructureService.php +5 −0 Changes for module/Application/src/Application/Service/Structure/StructureService.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Application\Service\Source\SourceServiceAwareTrait; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\OptimisticLockException; use Import\Service\Traits\SynchroServiceAwareTrait; use UnicaenApp\Exception\RuntimeException; use Webmozart\Assert\Assert; use DoctrineModule\Stdlib\Hydrator\DoctrineObject; Loading @@ -28,6 +29,7 @@ use DoctrineModule\Stdlib\Hydrator\DoctrineObject; class StructureService extends BaseService { use SourceServiceAwareTrait; use SynchroServiceAwareTrait; /** * @return EntityRepository Loading Loading @@ -131,6 +133,9 @@ class StructureService extends BaseService throw new RuntimeException("Erreur rencontrée lors de l'enregistrement des substitutions", null, $e); } $this->synchroService->addService('these'); $this->synchroService->synchronize(); return $structureConcreteCible; } Loading
module/Application/src/Application/Service/Structure/StructureServiceFactory.php +7 −1 Changes for module/Application/src/Application/Service/Structure/StructureServiceFactory.php: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Application\Service\Structure; use Application\Service\Source\SourceService; use Import\Service\SynchroService; use Zend\ServiceManager\ServiceLocatorInterface as ContainerInterface; /** Loading @@ -19,11 +20,16 @@ class StructureServiceFactory */ public function __invoke(ContainerInterface $container, $requestedName, $options = null) { /** @var SourceService $sourceService */ /** * @var SourceService $sourceService * @var SynchroService $synchroService */ $sourceService = $container->get(SourceService::class); $synchroService = $container->get(SynchroService::class); $service = new StructureService; $service->setSourceService($sourceService); $service->setSynchroService($synchroService); return $service; } Loading