<?php
namespace App\Controller;
use App\Entity\Article;
use App\Entity\Category;
use App\Repository\ArticleRepository;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
class InformationsController extends AbstractController
{
#[Route('/mentions-legales', name: 'app_legal_notice')]
public function legalNotice(ArticleRepository $articleRepository): Response
{
$article = $articleRepository->findOneBySlug('mentions-legales');
return $this->render('informations/legal_notice.html.twig', [
'article'=> $article,
]);
}
#[Route('/politique-de-confidentialite', name: 'app_confidentiality')]
public function confidentiality(ArticleRepository $articleRepository): Response
{
$article = $articleRepository->findOneBySlug('politique-de-confidentialite');
return $this->render('informations/confidentiality.html.twig', [
'article'=> $article,
]);
}
}