add generate new tournament button
This commit is contained in:
parent
c8fdc370d5
commit
f02e3d9319
|
|
@ -2,16 +2,10 @@
|
||||||
|
|
||||||
namespace App\Controller;
|
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\Repository\TournamentRepository;
|
||||||
use App\Service\PlayOffGameService;
|
use App\Service\PlayOffGameService;
|
||||||
use App\Service\QualifyingGameService;
|
use App\Service\QualifyingGameService;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
|
|
||||||
|
|
@ -19,11 +13,9 @@ class TournamentController extends AbstractController
|
||||||
{
|
{
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private TournamentRepository $tournamentRepository,
|
private readonly TournamentRepository $tournamentRepository,
|
||||||
private DivisionRepository $divisionRepository,
|
private readonly QualifyingGameService $qualifyingGameService,
|
||||||
private PlayerRepository $playerRepository,
|
private readonly PlayOffGameService $playOffGameService,
|
||||||
private QualifyingGameService $qualifyingGameService,
|
|
||||||
private PlayOffGameService $playOffGameService,
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
#[Route(path: '/tournament/{tournamentId}', name: 'tournament_get', methods: ['GET'])]
|
#[Route(path: '/tournament/{tournamentId}', name: 'tournament_get', methods: ['GET'])]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html.twig" %}
|
{% extends "base.html.twig" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="text-center mt-5"><a href="/" class="button">Generate new Tournament</a> </div>
|
||||||
<div class="text-center mt-5">
|
<div class="text-center mt-5">
|
||||||
<h1>Tournament {{ tournament.getTitle() }}</h1>
|
<h1>Tournament {{ tournament.getTitle() }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user