Skip to content

Commit 49578e7

Browse files
committed
minor #1481 Replace namespace Route Annotation with Route Attribute (ker0x)
This PR was merged into the main branch. Discussion ---------- Replace namespace Route Annotation with Route Attribute Commits ------- bdcc53e Replace namespace Route Annotation with Route Attribute
2 parents 3edba75 + bdcc53e commit 49578e7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Controller/Admin/BlogController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use Symfony\Component\Form\SubmitButton;
2323
use Symfony\Component\HttpFoundation\Request;
2424
use Symfony\Component\HttpFoundation\Response;
25-
use Symfony\Component\Routing\Annotation\Route;
25+
use Symfony\Component\Routing\Attribute\Route;
2626
use Symfony\Component\Security\Http\Attribute\CurrentUser;
2727
use Symfony\Component\Security\Http\Attribute\IsGranted;
2828

src/Controller/BlogController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Symfony\Component\HttpFoundation\Request;
2626
use Symfony\Component\HttpFoundation\Response;
2727
use Symfony\Component\HttpKernel\Attribute\Cache;
28-
use Symfony\Component\Routing\Annotation\Route;
28+
use Symfony\Component\Routing\Attribute\Route;
2929
use Symfony\Component\Security\Http\Attribute\CurrentUser;
3030
use Symfony\Component\Security\Http\Attribute\IsGranted;
3131

src/Controller/SecurityController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
18-
use Symfony\Component\Routing\Annotation\Route;
18+
use Symfony\Component\Routing\Attribute\Route;
1919
use Symfony\Component\Security\Http\Attribute\CurrentUser;
2020
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
2121
use Symfony\Component\Security\Http\Util\TargetPathTrait;

src/Controller/UserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Bundle\SecurityBundle\Security;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\Response;
22-
use Symfony\Component\Routing\Annotation\Route;
22+
use Symfony\Component\Routing\Attribute\Route;
2323
use Symfony\Component\Security\Http\Attribute\CurrentUser;
2424
use Symfony\Component\Security\Http\Attribute\IsGranted;
2525

0 commit comments

Comments
 (0)