<?php
namespace App\Controller;
use App\Repository\LabelRepository;
use App\Repository\SettingRepository;
use App\Repository\TarifRepository;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class TarifController extends AbstractController
{
/**
* @Route("/tarifs", name="app_tarif")
*/
public function index(
TarifRepository $tarifRepository,
SettingRepository $settingRepository,
LabelRepository $labelRepository
): Response {
return $this->render('tarif/index.html.twig', [
'settings' => $settingRepository->findAll(),
'labels' => $labelRepository->findAll(),
'tarifs' => $tarifRepository->findAll(),
'pageTitle' => 'tarifs'
]);
}
}