<?php
namespace App\Controller;
use App\Repository\PageRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class AboutController extends AbstractController
{
/**
* @Route("/qui-sommes-nous", name="app_about")
*/
public function index(PageRepository $pageRepository): Response
{
return $this->render('about/index.html.twig', [
'pageAbout' => $pageRepository->findBy(['id' => '1'], []),
'pageTitle' => 'about'
]);
}
}