From 32c6d5b170be0051f3053b7f1f4c4cffc16759f7 Mon Sep 17 00:00:00 2001 From: Beu Date: Thu, 16 Feb 2023 15:25:53 +0100 Subject: [PATCH] update conf for Symfony 6 --- examples/TrackMania.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/TrackMania.php b/examples/TrackMania.php index 9792eb1..7aefb58 100644 --- a/examples/TrackMania.php +++ b/examples/TrackMania.php @@ -15,7 +15,8 @@ class TrackMania extends AbstractController */ #[Route( '/connect/trackmania', - name: 'connect_trackmania_start' + name: 'connect_trackmania_start', + priority: 10 )] public function connectAction(ClientRegistry $clientRegistry) { @@ -32,7 +33,8 @@ class TrackMania extends AbstractController */ #[Route( '/connect/trackmania/check', - name: 'connect_trackmania_check' + name: 'connect_trackmania_check', + priority: 10 )] public function connectCheckAction(Request $request, ClientRegistry $clientRegistry) { @@ -43,6 +45,7 @@ class TrackMania extends AbstractController #[Route( '/login', name: 'app_login', + priority: 10, methods: ['GET', 'HEAD'] )] public function login(Request $request, RequestStack $requestStack): RedirectResponse @@ -56,12 +59,10 @@ class TrackMania extends AbstractController return $this->redirectToRoute('connect_trackmania_start'); } - /** - * @Route("/logout", name="app_logout", methods={"GET"}) - */ #[Route( '/logout', name: 'app_logout', + priority: 10, methods: ['GET', 'HEAD'] )] public function logout(): void