src/Application/Front/Controller/IndexController.php line 44
<?phpdeclare(strict_types=1);namespace App\Application\Front\Controller;use App\Application\Front\Manager\PostTagManager;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\RedirectResponse;use Symfony\Component\HttpFoundation\Request;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class IndexController extends AbstractController{public function __construct(private readonly PostTagManager $postTagManager,) {}#[Route('/', name: 'home')]public function index(Request $request): Response{$manifestos = ['learning_by_doing','technology_is_a_tool','accessibility','open_knowledge','remix_everything','have_fun','do_it_together','free_software','reuse','distributed_networks','agility',];return $this->render('frontend/index/home.html.twig', ['manifestos' => $manifestos,])->setSharedMaxAge(3600);}#[Route('/menu', name: 'menu')]public function menu(Request $request): Response{return $this->render('frontend/menu.html.twig', ['post_tags' => $this->postTagManager->list(),])->setSharedMaxAge(3600);}}