src/Controller/IndexController.php line 26
<?phpnamespace App\Controller;use Exception;use Psr\Log\LoggerInterface;use App\Services\ApidaeService;use App\Repository\OffreRepository;use Symfony\Component\Process\Process;use ApidaeTourisme\ApidaeBundle\Entity\Tache;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\Routing\Annotation\Route;use Symfony\Component\HttpKernel\KernelInterface;use ApidaeTourisme\ApidaeBundle\Services\TachesServices;use App\Services\ModelsService;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;class IndexController extends AbstractController{public function __construct(private ModelsService $modelsService) {}#[Route('/', name: 'app_index')]public function index(){$sources = $this->modelsService->getSources() ;return $this->render('index.html.twig', ['sources' =>$sources,]) ;}/*** @todo : Remplacer cette route par une route ApidaeBundle*/// #[Route('/logout', name: 'app_logout')]// public function logout()// {// return $this->render('base.html.twig');// }}