src/Controller/AproposController.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\Admin\AproposRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class AproposController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/apropos", name="apropos")
  11.      */
  12.     public function index(AproposRepository $aproposRepository): Response
  13.     {
  14.         $apropos $aproposRepository->find(1);
  15.         //dd($apropos);
  16.         return $this->render('apropos/apropos.html.twig', [
  17.             'apropos'       => $apropos,
  18.             'page'          => "À propos"
  19.         ]);
  20.     }
  21. }