From 39d5b3bf440c1d4b7d8684ed4fab9bba4aba5732 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Sat, 13 Jan 2024 18:14:24 +0100 Subject: [PATCH] migrate to routing attribute --- src/Controller/ApiController.php | 2 +- src/Controller/ChangePasswordController.php | 2 +- src/Controller/ExploreController.php | 2 +- src/Controller/FeedController.php | 2 +- src/Controller/GitHubLoginController.php | 2 +- src/Controller/HealthCheckController.php | 2 +- src/Controller/PackageController.php | 2 +- src/Controller/ProfileController.php | 2 +- src/Controller/RegistrationController.php | 2 +- src/Controller/ResetPasswordController.php | 2 +- src/Controller/SecurityController.php | 2 +- src/Controller/UserController.php | 2 +- src/Controller/WebController.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Controller/ApiController.php b/src/Controller/ApiController.php index 5a8a80d4e..662c3ad52 100644 --- a/src/Controller/ApiController.php +++ b/src/Controller/ApiController.php @@ -29,7 +29,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Graze\DogStatsD\Client as StatsDClient; use Psr\Log\LoggerInterface; diff --git a/src/Controller/ChangePasswordController.php b/src/Controller/ChangePasswordController.php index d7b980f1a..21b9b257c 100644 --- a/src/Controller/ChangePasswordController.php +++ b/src/Controller/ChangePasswordController.php @@ -18,7 +18,7 @@ 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\Attribute\CurrentUser; class ChangePasswordController extends Controller diff --git a/src/Controller/ExploreController.php b/src/Controller/ExploreController.php index 58f2ae0d0..22afe7bcb 100644 --- a/src/Controller/ExploreController.php +++ b/src/Controller/ExploreController.php @@ -22,7 +22,7 @@ use Symfony\Component\HttpFoundation\JsonResponse; 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\Routing\Generator\UrlGeneratorInterface; use Predis\Client as RedisClient; use Symfony\Component\HttpKernel\EventListener\AbstractSessionListener; diff --git a/src/Controller/FeedController.php b/src/Controller/FeedController.php index e22d6fe4d..676c28383 100644 --- a/src/Controller/FeedController.php +++ b/src/Controller/FeedController.php @@ -17,7 +17,7 @@ use App\Entity\Version; 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\Routing\Generator\UrlGeneratorInterface; use Laminas\Feed\Writer\Entry; use Laminas\Feed\Writer\Feed; diff --git a/src/Controller/GitHubLoginController.php b/src/Controller/GitHubLoginController.php index 342713055..2985fe25e 100644 --- a/src/Controller/GitHubLoginController.php +++ b/src/Controller/GitHubLoginController.php @@ -22,7 +22,7 @@ use Symfony\Component\Finder\Exception\AccessDeniedException; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface; use Symfony\Component\Security\Http\Attribute\CurrentUser; diff --git a/src/Controller/HealthCheckController.php b/src/Controller/HealthCheckController.php index a1ce16ce1..55f9852e5 100644 --- a/src/Controller/HealthCheckController.php +++ b/src/Controller/HealthCheckController.php @@ -14,7 +14,7 @@ use Laminas\Diagnostics\Result\Collection; use Laminas\Diagnostics\Result\ResultInterface; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Laminas\Diagnostics\Check; diff --git a/src/Controller/PackageController.php b/src/Controller/PackageController.php index b07802881..319a11fab 100644 --- a/src/Controller/PackageController.php +++ b/src/Controller/PackageController.php @@ -56,7 +56,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use App\Service\GitHubUserMigrationWorker; diff --git a/src/Controller/ProfileController.php b/src/Controller/ProfileController.php index f34881786..c290d93aa 100644 --- a/src/Controller/ProfileController.php +++ b/src/Controller/ProfileController.php @@ -23,7 +23,7 @@ use Pagerfanta\Pagerfanta; 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\Routing\Generator\UrlGeneratorInterface; diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index 7bd9049be..bd36d9801 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -25,7 +25,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Mime\Address; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface; use SymfonyCasts\Bundle\VerifyEmail\Exception\VerifyEmailExceptionInterface; diff --git a/src/Controller/ResetPasswordController.php b/src/Controller/ResetPasswordController.php index 9ad5d8483..334d64706 100644 --- a/src/Controller/ResetPasswordController.php +++ b/src/Controller/ResetPasswordController.php @@ -27,7 +27,7 @@ use Symfony\Component\Mailer\MailerInterface; use Symfony\Component\Mime\Address; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface; diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 87b99dd26..4e942e8f5 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -13,7 +13,7 @@ namespace App\Controller; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; class SecurityController extends Controller diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 56a395ec1..354bb4361 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -37,7 +37,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; 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\Core\Authentication\Token\Storage\TokenStorageInterface; use Predis\Client as RedisClient; use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface; diff --git a/src/Controller/WebController.php b/src/Controller/WebController.php index b8e96dbd5..0cc11fe9a 100644 --- a/src/Controller/WebController.php +++ b/src/Controller/WebController.php @@ -25,7 +25,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Predis\Client as RedisClient; use Symfony\Component\HttpKernel\EventListener\AbstractSessionListener; use Symfony\Contracts\Cache\CacheInterface;