<?php
namespace App\Controller;
use App\Repository\SliderReferenceRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class SlidersController extends AbstractController
{
public function references(SliderReferenceRepository $sliderReferenceRepository): Response
{
return $this->render('partials/_slider_reference.html.twig', [
'references' => $sliderReferenceRepository->findby([
'isPublish' => true,
],[]),
]);
}
}