diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php index 3a8587f..7abe125 100644 --- a/src/Controller/HomeController.php +++ b/src/Controller/HomeController.php @@ -4,7 +4,7 @@ namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; class HomeController extends AbstractController { diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 51f10b3..2e37120 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -11,7 +11,7 @@ use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; class SecurityController extends AbstractController diff --git a/src/Controller/SnipController.php b/src/Controller/SnipController.php index 0bf9aab..e4fa3e7 100644 --- a/src/Controller/SnipController.php +++ b/src/Controller/SnipController.php @@ -13,7 +13,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; #[Route('/snip', name: 'snip')] class SnipController extends AbstractController diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 6935079..69b808b 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -2,7 +2,6 @@ namespace App\Controller; -use App\Entity\User; use App\Form\ProfileType; use App\Form\UserSettingsType; use App\Service\LastRelease; @@ -11,8 +10,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; -use Symfony\Component\Routing\Annotation\Route; -use Symfony\Component\Uid\Uuid; +use Symfony\Component\Routing\Attribute\Route; #[Route('/user', name: 'user')] class UserController extends AbstractController diff --git a/src/Controller/VersionController.php b/src/Controller/VersionController.php index 046be9a..e2ae89c 100644 --- a/src/Controller/VersionController.php +++ b/src/Controller/VersionController.php @@ -8,7 +8,7 @@ use App\Security\Voter\SnipVoter; use App\Service\SnipServiceFactory; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; #[Route('/version/{snip}', name: 'version')] class VersionController extends AbstractController