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