src/Controller/BoxesController.php line 24
<?phpnamespace App\Controller;use App\Entity\Accommodation;use App\Entity\Client;use App\Entity\Contract;use App\Entity\ContractClient;use App\Entity\Destination;use App\Repository\BoxRepository;use App\Repository\ClientRepository;use App\Repository\DestinationRepository;use App\Repository\TermRepository;use App\Service\ContractService;use App\Service\TermService;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class BoxesController extends AbstractController{#[Route('/boxes/list', name: 'app_boxes')]public function done(BoxRepository $boxRepository, Request $request): Response{$boxes = $boxRepository->findBy(['active' => true], ['position' => 'ASC']);return $this->render('Components/boxes.html.twig',['boxes' => $boxes]);}}