src/Controller/AboutController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\PageRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class AboutController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/qui-sommes-nous", name="app_about")
  11.      */
  12.     public function index(PageRepository $pageRepository): Response
  13.     {
  14.         return $this->render('about/index.html.twig', [
  15.             'pageAbout' => $pageRepository->findBy(['id' => '1'], []),
  16.             'pageTitle' => 'about'
  17.         ]);
  18.     }
  19. }