src/Controller/IndexController.php line 22
<?phpnamespace App\Controller;use App\Entity\ModelType;use App\Entity\Passerelle;use App\Entity\PasserellesEnum;use App\Services\PasserelleService;use Symfony\Bundle\SecurityBundle\Security;use Symfony\Component\Routing\Annotation\Route;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;class IndexController extends AbstractController{public function __construct(private PasserelleService $passerelleService,private Security $security) {}#[Route('/', name: 'app_index')]public function index(){/*** @var Passerelle[] $passerelles*/$passerelles = $this->passerelleService->getPasserellesForUser($this->security->getUser()) ;return $this->render('index.html.twig', ['passerelles' => $passerelles]) ;}}