src/Controller/PresentationController.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class PresentationController extends AbstractController
  8. {
  9.     // private EntityManagerInterface $entityManager;
  10.     //
  11.     // public function __construct(EntityManagerInterface $entityManager)
  12.     // {
  13.     //     $this->entityManager = $entityManager;
  14.     // }
  15.     /**
  16.      * @Route("/presentation", name="presentation")
  17.      */
  18.     public function presentation(Request $request): Response
  19.     {
  20.         return $this->render('presentation/presentation.html.twig', [
  21.             'controller_name' => 'PresentationController',
  22.             'active_menu' => 'presentation',
  23.         ]);
  24.     }
  25. }