src/Controller/Front/PressController.php line 13

  1. <?php
  2. namespace App\Controller\Front;
  3. use App\Repository\PrensaRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class PressController extends AbstractController
  8. {
  9.     #[Route('/press-more'name'app_front_press')]
  10.     public function index(
  11.         PrensaRepository $prensaRepository,
  12.     ): Response {
  13.         return $this->render('front/press/index.html.twig', [
  14.             'controller_name' => 'PressController',
  15.             'prensas' => $prensaRepository->nextPage(),
  16.         ]);
  17.     }
  18. }