src/Application/Front/Controller/ProcessController.php line 22

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Application\Front\Controller;
  4. use App\Application\Front\Manager\PostTagManager;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\RedirectResponse;
  7. use Symfony\Component\HttpFoundation\Request;
  8. use Symfony\Component\HttpFoundation\Response;
  9. use Symfony\Component\Routing\Annotation\Route;
  10. class ProcessController extends AbstractController
  11. {
  12.     public function __construct(
  13.         private readonly PostTagManager $postTagManager,
  14.     ) {
  15.     }
  16.     #[Route('/processus'name'process')]
  17.     public function index(Request $request): Response
  18.     {
  19.         $manifestos = [
  20.             'learning_by_doing',
  21.             'technology_is_a_tool',
  22.             'accessibility',
  23.             'open_knowledge',
  24.             'remix_everything',
  25.             'have_fun',
  26.             'do_it_together',
  27.             'free_software',
  28.             'reuse',
  29.             'distributed_networks',
  30.             'agility',
  31.         ];
  32.         return $this->render('frontend/process/process.html.twig', [
  33.             'manifestos' => $manifestos,
  34.         ])->setSharedMaxAge(3600);
  35.     }
  36. }