src/Controller/SlidersController.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\SliderReferenceRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class SlidersController extends AbstractController
  7. {
  8.     public function references(SliderReferenceRepository $sliderReferenceRepository): Response
  9.     {
  10.         return $this->render('partials/_slider_reference.html.twig', [
  11.             'references' => $sliderReferenceRepository->findby([
  12.                 'isPublish' => true,
  13.             ],[]),
  14.         ]);
  15.     }
  16. }