src/Controller/Front/HomeController.php line 16
<?phpnamespace App\Controller\Front;use App\Repository\ImgWorkRepository;use App\Repository\PrensaRepository;use App\Repository\StaffRepository;use App\Repository\WorkRepository;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class HomeController extends AbstractController{#[Route('/', name: 'app_front_home')]public function index(WorkRepository $workRepository,StaffRepository $staffRepository,PrensaRepository $prensaRepository,ImgWorkRepository $imgWorkRepository): Response {return $this->render('front/home/index.html.twig', ['controller_name' => 'HomeController','works' => $workRepository->home(),'staffs' => $staffRepository->home(),'prensas' => $prensaRepository->home(),'imgWork' => $imgWorkRepository->findOneBy(['enabled' => true,], ['peso' => 'ASC',]),]);}}