src/Controller/Anonyme/Projet/ProjetDetailController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Anonyme\Projet;
  3. use App\Entity\Projet;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /* Détail d'un projet */
  8. #[Route('/projet')]
  9. class ProjetDetailController extends AbstractController
  10. {
  11.     #[Route('/{id}'name'app_projet_show'methods: ['GET'])]
  12.     public function show(Projet $projet): Response
  13.     {
  14.         return $this->render('projet/show.html.twig', [
  15.             'projet' => $projet,
  16.         ]);
  17.     }
  18. }