diff --git a/src/Controller/TournamentController.php b/src/Controller/TournamentController.php index f84c643..a291b8c 100644 --- a/src/Controller/TournamentController.php +++ b/src/Controller/TournamentController.php @@ -2,16 +2,10 @@ namespace App\Controller; -use App\Entity\Division; -use App\Entity\Player; -use App\Entity\Tournament; -use App\Repository\DivisionRepository; -use App\Repository\PlayerRepository; use App\Repository\TournamentRepository; use App\Service\PlayOffGameService; use App\Service\QualifyingGameService; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; @@ -19,11 +13,9 @@ class TournamentController extends AbstractController { public function __construct( - private TournamentRepository $tournamentRepository, - private DivisionRepository $divisionRepository, - private PlayerRepository $playerRepository, - private QualifyingGameService $qualifyingGameService, - private PlayOffGameService $playOffGameService, + private readonly TournamentRepository $tournamentRepository, + private readonly QualifyingGameService $qualifyingGameService, + private readonly PlayOffGameService $playOffGameService, ) {} #[Route(path: '/tournament/{tournamentId}', name: 'tournament_get', methods: ['GET'])] diff --git a/templates/tournament.html.twig b/templates/tournament.html.twig index c74b0cf..46a7479 100644 --- a/templates/tournament.html.twig +++ b/templates/tournament.html.twig @@ -1,6 +1,7 @@ {% extends "base.html.twig" %} {% block body %}