Private
Public Access
1
0

chg: dev: refactor to use Attributes instead of yaml markdown #4

This commit is contained in:
2026-04-10 12:33:38 +02:00
parent fe2de91e91
commit 15806a6e04
3 changed files with 14 additions and 58 deletions

View File

@@ -13,6 +13,7 @@ namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
/**
* Class GameController
@@ -36,11 +37,14 @@ class GameController extends AbstractController
) {
}
#[Route('/', name: 'MineSeekerBundle_homepage')]
public function index(): Response
{
return $this->render('Game/index.html.twig');
}
#[Route('/play', name: 'MineSeekerBundle_gamePlay')]
#[Route('/play/{gameAssoc}', name: 'MineSeekerBundle_gamePlayWId')]
public function play(): Response
{
return $this->render('Game/play.html.twig', [
@@ -50,21 +54,25 @@ class GameController extends AbstractController
]);
}
#[Route('/privacy-policy', name: 'MineSeekerBundle_privacy')]
public function privacy(): Response
{
return $this->render('Official/privacy.html.twig');
}
#[Route('/terms-of-service', name: 'MineSeekerBundle_terms')]
public function terms(): Response
{
return $this->render('Official/terms.html.twig');
}
#[Route('/contact', name: 'MineSeekerBundle_contact')]
public function contact(): Response
{
return $this->render('Official/contact.html.twig');
}
#[Route('/landing-page', name: 'MineSeekerBundle_landing')]
public function landing(): Response
{
return $this->render('Official/landing.html.twig');