update conf for Symfony 6

This commit is contained in:
Beu 2023-02-16 15:25:53 +01:00
parent a2823e101a
commit 32c6d5b170

View File

@ -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