<?php
namespace App\Controller\Anonyme\Projet;
use App\Entity\Projet;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/* Détail d'un projet */
#[Route('/projet')]
class ProjetDetailController extends AbstractController
{
#[Route('/{id}', name: 'app_projet_show', methods: ['GET'])]
public function show(Projet $projet): Response
{
return $this->render('projet/show.html.twig', [
'projet' => $projet,
]);
}
}