chore: reorganizing

This commit is contained in:
thibaud-leclere
2026-04-01 19:24:04 +02:00
parent 0e3b17bb7d
commit 087b063f1f
10 changed files with 20 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ namespace App\Controller;
use App\Entity\Game;
use App\Entity\User;
use App\Repository\GameRepository;
use App\Service\GameGridGenerator;
use App\Provider\GameGridProvider;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
@@ -19,7 +19,7 @@ class GameController extends AbstractController
#[Route('/game/start', name: 'app_game_start', methods: ['POST'])]
public function start(
Request $request,
GameGridGenerator $generator,
GameGridProvider $generator,
GameRepository $gameRepository,
): Response {
$this->validateCsrfToken('game_start', $request);

View File

@@ -7,7 +7,7 @@ namespace App\Controller;
use App\Entity\Game;
use App\Entity\User;
use App\Repository\GameRepository;
use App\Service\GameGridGenerator;
use App\Provider\GameGridProvider;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@@ -19,7 +19,7 @@ class HomepageController extends AbstractController
public function index(
Request $request,
GameRepository $gameRepository,
GameGridGenerator $gridGenerator,
GameGridProvider $gridGenerator,
): Response {
/** @var User|null $user */
$user = $this->getUser();

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Service;
namespace App\Import;
use App\Entity\Actor;
use App\Entity\Movie;

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Service;
namespace App\Import;
use App\Entity\Actor;
use App\Entity\Award;

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Service;
namespace App\Import;
use App\Entity\Movie;
use App\Exception\GatewayException;

View File

@@ -9,9 +9,9 @@ use App\Entity\UserMovie;
use App\Gateway\LtbxdGateway;
use App\Message\ImportFilmsBatchMessage;
use App\Repository\ImportRepository;
use App\Service\ActorSyncer;
use App\Service\AwardImporter;
use App\Service\FilmImporter;
use App\Import\ActorSyncer;
use App\Import\AwardImporter;
use App\Import\FilmImporter;
use Doctrine\ORM\EntityManagerInterface;
use League\Flysystem\FilesystemOperator;
use Psr\Log\LoggerInterface;

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Service;
namespace App\Provider;
use App\Entity\Actor;
use App\Entity\Game;
@@ -14,7 +14,7 @@ use App\Repository\MovieRoleRepository;
use App\Repository\AwardRepository;
use Doctrine\ORM\EntityManagerInterface;
class GameGridGenerator
class GameGridProvider
{
public function __construct(
private readonly ActorRepository $actorRepository,