src/Controller/HomeController.php line 18
<?phpnamespace App\Controller;use App\Repository\CabinetRepository;use App\Repository\CategoryRepository;use App\Repository\DomaineRepository;use App\Repository\HomepageRepository;use App\Repository\PageRepository;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class HomeController extends AbstractController{#[Route('/', name: 'app_home')]public function index(Request $request,HomepageRepository $homepageRepository,DomaineRepository $domaineRepository,CabinetRepository $cabinetRepository,PageRepository $pageRepository,CategoryRepository $categoryRepository): Response{$pathInfo = $request->getPathInfo();return $this->render('home/index.html.twig', ['homepage' => $homepageRepository->findAll(),'domaines' => $domaineRepository->findAll(),'cabinets' => $cabinetRepository->findAll(),'pathInfo' =>$pathInfo,'page' => $pageRepository->findByPage($pathInfo),'categories' => $categoryRepository->findAll(),'pageTitle' => 'home',]);}}