<?php
namespace App\Controller\App;
use App\Repository\Administration\GalleryRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
#[Route('/', name: 'home_index')]
public function index(): Response
{
return $this->render('app/home/index.html.twig');
}
#[Route('/galerie', name: 'home_gallery')]
public function showGalery(GalleryRepository $galleryRepository): Response
{
return $this->render('app/product/galery.html.twig', [
'images' => $galleryRepository->findAllActivePhotos(),
]);
}
}