From bdcc53ea7b889a5c71d908d4ae3fd691794d9dec Mon Sep 17 00:00:00 2001 From: Romain Monteil Date: Sun, 24 Dec 2023 10:19:32 +0100 Subject: [PATCH] Replace namespace Route Annotation with Route Attribute --- src/Controller/Admin/BlogController.php | 2 +- src/Controller/BlogController.php | 2 +- src/Controller/SecurityController.php | 2 +- src/Controller/UserController.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Controller/Admin/BlogController.php b/src/Controller/Admin/BlogController.php index 8dd7b2e21..faaaab1eb 100644 --- a/src/Controller/Admin/BlogController.php +++ b/src/Controller/Admin/BlogController.php @@ -22,7 +22,7 @@ use Symfony\Component\Form\SubmitButton; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Attribute\CurrentUser; use Symfony\Component\Security\Http\Attribute\IsGranted; diff --git a/src/Controller/BlogController.php b/src/Controller/BlogController.php index 3df90b2f5..39453e0ee 100644 --- a/src/Controller/BlogController.php +++ b/src/Controller/BlogController.php @@ -25,7 +25,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Attribute\Cache; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Attribute\CurrentUser; use Symfony\Component\Security\Http\Attribute\IsGranted; diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 1b724fa07..06104fd66 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -15,7 +15,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Attribute\CurrentUser; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; use Symfony\Component\Security\Http\Util\TargetPathTrait; diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index a02c92658..d73acdd59 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -19,7 +19,7 @@ use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Attribute\CurrentUser; use Symfony\Component\Security\Http\Attribute\IsGranted;