src/Controller/HomeController.php line 14
<?phpnamespace App\Controller;use App\Repository\NotificationsRepository;use App\Repository\TexteFirstPageRepository;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class HomeController extends AbstractController{#[Route('/', name: 'home')]public function index(): Response{return $this->redirectToRoute('custom_product');}#[Route('/cgv', name: 'cgv')]public function cgv(TexteFirstPageRepository $tfpr, NotificationsRepository $notificationRepo): Response{return $this->render('vitrine/cgv.html.twig', ['content' => $tfpr->find(2),'notifications' => $notificationRepo->getNotifications($this->getUser()),]);}}