Skip to content
Snippets Groups Projects
Select Git revision
  • aa7ec43842ec0cb37fa28cb092476f85ff8e9432
  • master default protected
  • b24
  • ll-session
  • ll-workflow
  • ll-framework
  • ll-wf-finitions
  • alc-scindage-donnees-pj
  • FJ_LL_Tbl_Contrat
  • alc-docker-node
  • ll-apiplatform
  • php84
  • ll-rgpd
  • b23
  • alc-filtre-type-intervenant
  • ll-sans-mdb5
  • formules-ancienne-infra
  • ll-formules
  • alc-intervenant-dmep
  • ll-suppr-v_vol-s
  • b20
  • 24.11
  • 24.10
  • 24.9
  • 24.8
  • 24.7
  • 24.6
  • 24.5
  • 24.4
  • 24.3
  • 24.2
  • 24.1
  • 24.0
  • 23.15
  • 24.0-beta19
  • 24.0-beta18
  • 24.0-beta17
  • 24.0-beta16
  • 24.0-beta15
  • 24.0-beta14
  • 24.0-beta13
41 results

FormAwareTrait.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    SynchroniserCommandFactory.php 972 B
    <?php
    
    namespace UnicaenSynchro\Command;
    
    use Psr\Container\ContainerExceptionInterface;
    use Psr\Container\ContainerInterface;
    use Psr\Container\NotFoundExceptionInterface;
    use Symfony\Component\Console\Command\Command;
    use UnicaenSynchro\Service\Synchronisation\SynchronisationService;
    
    class SynchroniserCommandFactory extends Command
    {
        /**
         * @throws ContainerExceptionInterface
         * @throws NotFoundExceptionInterface
         */
        public function __invoke(ContainerInterface $container): SynchroniserCommand
        {
            /**
             * @var array $configs
             * @var SynchronisationService $synchroniserService
             */
            $configs = $container->get('Config')['synchros'];
            $synchronisationService = $container->get(SynchronisationService::class);
    
            $command = new SynchroniserCommand();
            $command->setSynchronisationService($synchronisationService);
            $command->setConfigs($configs);
            return $command;
        }
    }