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