diff --git a/src/Command/SyncActorsCommand.php b/src/Command/SyncActorsCommand.php deleted file mode 100644 index 15f9b5d..0000000 --- a/src/Command/SyncActorsCommand.php +++ /dev/null @@ -1,37 +0,0 @@ -em->getRepository(Movie::class)->findAll() as $film) { - try { - $output->writeln('Syncing cast for '.$film->getTitle()); - $this->actorSyncer->syncActorsForMovie($film); - } catch (GatewayException $e) { - $output->writeln('/!\ '.$e->getMessage()); - continue; - } - - $this->em->flush(); - } - - return Command::SUCCESS; - } -} diff --git a/src/Command/SyncFilmsCommands.php b/src/Command/SyncFilmsCommands.php deleted file mode 100644 index 5fd8159..0000000 --- a/src/Command/SyncFilmsCommands.php +++ /dev/null @@ -1,57 +0,0 @@ -ltbxdGateway->parseFile(); - } catch (GatewayException $e) { - $output->writeln('/!\ '.$e->getMessage()); - - return Command::FAILURE; - } - - $i = 0; - foreach ($ltbxdMovies as $ltbxdMovie) { - try { - $movie = $this->filmImporter->importFromLtbxdMovie($ltbxdMovie); - if ($movie) { - $output->writeln('* Found '.$ltbxdMovie->getName()); - } - } catch (GatewayException $e) { - $output->writeln('/!\ '.$e->getMessage()); - - return Command::FAILURE; - } - - ++$i; - if (0 === $i % 50) { - $this->em->flush(); - } - } - - $this->em->flush(); - - $output->writeln('Films synced'); - - return Command::SUCCESS; - } -}