<?php
namespace App\Controller\Anonyme\Timeline;
use App\Repository\TimelineRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
#[Route('/timeline')]
class TimeLineController extends AbstractController
{
#[Route('/', name: 'app_timeline')]
public function index(TimelineRepository $timelineRepository): Response
{
$timelines = $timelineRepository->findAll();
return $this->render('timeline/index.html.twig', [
'timelines' => $timelines,
]);
}
}