Skip to content

Commit 304949f

Browse files
Use new attribute route class, since the annotation one is deprecated.
1 parent 63d10c9 commit 304949f

35 files changed

+35
-35
lines changed

webapp/src/Controller/API/MetricsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Security\Http\Attribute\IsGranted;
1717
use OpenApi\Attributes as OA;
1818
use Symfony\Component\HttpFoundation\Response;
19-
use Symfony\Component\Routing\Annotation\Route;
19+
use Symfony\Component\Routing\Attribute\Route;
2020

2121
use Prometheus\CollectorRegistry;
2222
use Prometheus\RenderTextFormat;

webapp/src/Controller/Jury/AnalysisController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Security\Http\Attribute\IsGranted;
1515
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1616
use Symfony\Component\HttpFoundation\Response;
17-
use Symfony\Component\Routing\Annotation\Route;
17+
use Symfony\Component\Routing\Attribute\Route;
1818

1919
#[IsGranted('ROLE_JURY')]
2020
#[Route(path: '/jury/analysis')]

webapp/src/Controller/Jury/AuditLogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Security\Http\Attribute\IsGranted;
1616
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1717
use Symfony\Component\HttpFoundation\Response;
18-
use Symfony\Component\Routing\Annotation\Route;
18+
use Symfony\Component\Routing\Attribute\Route;
1919

2020
#[IsGranted('ROLE_ADMIN')]
2121
#[Route(path: '/jury/auditlog')]

webapp/src/Controller/Jury/BalloonController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\ExpressionLanguage\Expression;
1515
use Symfony\Component\HttpFoundation\RedirectResponse;
1616
use Symfony\Component\HttpFoundation\Response;
17-
use Symfony\Component\Routing\Annotation\Route;
17+
use Symfony\Component\Routing\Attribute\Route;
1818
use Symfony\Component\Security\Http\Attribute\IsGranted;
1919

2020
#[IsGranted(new Expression("is_granted('ROLE_ADMIN') or is_granted('ROLE_BALLOON')"))]

webapp/src/Controller/Jury/ClarificationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Symfony\Component\HttpFoundation\Request;
2222
use Symfony\Component\HttpFoundation\Response;
2323
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
24-
use Symfony\Component\Routing\Annotation\Route;
24+
use Symfony\Component\Routing\Attribute\Route;
2525

2626
#[IsGranted('ROLE_CLARIFICATION_RW')]
2727
#[Route(path: '/jury/clarifications')]

webapp/src/Controller/Jury/ConfigController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
20-
use Symfony\Component\Routing\Annotation\Route;
20+
use Symfony\Component\Routing\Attribute\Route;
2121

2222
#[IsGranted('ROLE_ADMIN')]
2323
#[Route(path: '/jury/config')]

webapp/src/Controller/Jury/ContestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
4343
use Symfony\Component\HttpKernel\KernelInterface;
4444
use Symfony\Component\PropertyAccess\PropertyAccess;
45-
use Symfony\Component\Routing\Annotation\Route;
45+
use Symfony\Component\Routing\Attribute\Route;
4646
use Symfony\Component\Security\Http\Attribute\IsGranted;
4747

4848
#[IsGranted('ROLE_JURY')]

webapp/src/Controller/Jury/ExecutableController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2828
use Symfony\Component\HttpKernel\KernelInterface;
2929
use Symfony\Component\PropertyAccess\PropertyAccess;
30-
use Symfony\Component\Routing\Annotation\Route;
30+
use Symfony\Component\Routing\Attribute\Route;
3131

3232
#[IsGranted('ROLE_JURY')]
3333
#[Route(path: '/jury/executables')]

webapp/src/Controller/Jury/ExternalContestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\HttpFoundation\Response;
1919
use Symfony\Component\HttpKernel\KernelInterface;
2020
use Symfony\Component\PropertyAccess\PropertyAccess;
21-
use Symfony\Component\Routing\Annotation\Route;
21+
use Symfony\Component\Routing\Attribute\Route;
2222

2323
#[IsGranted('ROLE_ADMIN')]
2424
#[Route(path: '/jury/external-contest')]

webapp/src/Controller/Jury/ImportExportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
use Symfony\Component\HttpFoundation\Response;
3737
use Symfony\Component\HttpFoundation\StreamedResponse;
3838
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
39-
use Symfony\Component\Routing\Annotation\Route;
39+
use Symfony\Component\Routing\Attribute\Route;
4040
use Symfony\Component\Yaml\Exception\ParseException;
4141
use Symfony\Component\Yaml\Yaml;
4242
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;

0 commit comments

Comments
 (0)