| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | <?phpnamespace App\Controller;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Attribute\Route;final class MainController extends AbstractController{    #[Route('/', name: 'app_main')]    public function index(): Response    {        return $this->render('main/index.html.twig', [            'controller_name' => 'MainController',        ]);    }    #[Route('/charte-animations', name: 'app_code_of_conduct')]    public function codeOfConduct(): Response    {        // Lire le contenu de la charte des animations depuis un fichier        $codeContent = file_get_contents(__DIR__ . '/../../public/pages/code.md');        return $this->render('main/markdown.html.twig', [            'codeContent' => $codeContent,        ]);    }    #[Route('/cgu', name: 'app_terms')]    public function terms(): Response    {        // Lire le contenu de la charte des animations depuis un fichier        $codeContent = file_get_contents(__DIR__ . '/../../public/pages/terms.md');        return $this->render('main/markdown.html.twig', [            'codeContent' => $codeContent,        ]);    }    #[Route('/legal', name: 'app_legal')]    public function legal(): Response    {        // Lire le contenu de la charte des animations depuis un fichier        $codeContent = file_get_contents(__DIR__ . '/../../public/pages/legal.md');        return $this->render('main/markdown.html.twig', [            'codeContent' => $codeContent,        ]);    }    #[Route('/contact', name: 'app_contact')]    public function contact(): Response    {        // Lire le contenu de la charte des animations depuis un fichier        $codeContent = file_get_contents(__DIR__ . '/../../public/pages/legal.md');        return $this->render('main/markdown.html.twig', [            'codeContent' => $codeContent,        ]);    }}
 |