Loading module/Administration/src/Command/SynchronisationCommand.php +7 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Administration\Command; use Application\Provider\Role\RoleProvider; use Application\Service\Traits\AffectationServiceAwareTrait; use Doctrine\Common\Cache\FilesystemCache; use Lieu\Service\StructureServiceAwareTrait; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; Loading @@ -21,6 +22,7 @@ class SynchronisationCommand extends Command { use ImportProcessusAwareTrait; use AffectationServiceAwareTrait; use StructureServiceAwareTrait; protected function configure(): void { Loading Loading @@ -56,8 +58,13 @@ class SynchronisationCommand extends Command //Suppresion du cache des affectations $io->writeln("Suppression du cache doctrine des affectations"); $this->getServiceAffectation()->deleteCacheAffectation(); // Traitements supplémentaires $this->getServiceStructure()->updateStructures(); } return Command::SUCCESS; } Loading Loading
module/Administration/src/Command/SynchronisationCommand.php +7 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Administration\Command; use Application\Provider\Role\RoleProvider; use Application\Service\Traits\AffectationServiceAwareTrait; use Doctrine\Common\Cache\FilesystemCache; use Lieu\Service\StructureServiceAwareTrait; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; Loading @@ -21,6 +22,7 @@ class SynchronisationCommand extends Command { use ImportProcessusAwareTrait; use AffectationServiceAwareTrait; use StructureServiceAwareTrait; protected function configure(): void { Loading Loading @@ -56,8 +58,13 @@ class SynchronisationCommand extends Command //Suppresion du cache des affectations $io->writeln("Suppression du cache doctrine des affectations"); $this->getServiceAffectation()->deleteCacheAffectation(); // Traitements supplémentaires $this->getServiceStructure()->updateStructures(); } return Command::SUCCESS; } Loading