rearrangements

This commit is contained in:
thibaud-leclere
2026-01-20 10:36:39 +01:00
parent f0af17024e
commit 1ebf8b99b3

View File

@@ -7,22 +7,17 @@ use App\Entity\Movie;
use App\Entity\MovieRole; use App\Entity\MovieRole;
use App\Exception\GatewayException; use App\Exception\GatewayException;
use App\Gateway\TMDBGateway; use App\Gateway\TMDBGateway;
use App\Model\Ltbxd\LtbxdMovie;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Attribute\Option;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Serializer\Exception\ExceptionInterface;
use Symfony\Component\Serializer\SerializerInterface;
#[AsCommand('app:sync-casts')] #[AsCommand('app:sync-actors')]
readonly class SyncCastsCommand readonly class SyncActorsCommand
{ {
public function __construct ( public function __construct (
private readonly SerializerInterface $serializer, private TMDBGateway $TMDBGateway,
private readonly TMDBGateway $TMDBGateway, private EntityManagerInterface $em,
private readonly EntityManagerInterface $em,
) {} ) {}
public function __invoke(OutputInterface $output): int public function __invoke(OutputInterface $output): int
@@ -64,5 +59,7 @@ readonly class SyncCastsCommand
$this->em->flush(); $this->em->flush();
} }
return Command::SUCCESS;
} }
} }