<?php
namespace App\Controller;
use App\Repository\AboutRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class AboutController extends AbstractController
{
/**
* @Route({
* "fr": "/fr/qui-nous-sommes",
* "en": "/en/about-us"
* }, name="app_about_index")
*/
public function index(AboutRepository $aboutRepository): Response
{
$about = $aboutRepository->findAboutPostByTag('about_index');
$value = $aboutRepository->findAboutPostByTag('value_index');
$force = $aboutRepository->findAboutPostByTag('forces_index');
return $this->render('about/index.html.twig', [
'abouts' => $about,
'values' => $value,
'forces' => $force
]);
}
}