Skip to content

Commit c5d0b6a

Browse files
committed
make controllers final; clean unused routing config
1 parent 582782a commit c5d0b6a

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

config/routes.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
controllers:
2-
resource:
3-
path: ../src/Controller/
4-
namespace: App\Controller
5-
type: attribute
6-
71
api_login_check:
82
path: /api/login
93

src/Controller/VueController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\HttpFoundation\Response;
88
use Twig\Environment;
99

10-
class VueController
10+
final class VueController
1111
{
1212
public function __construct(
1313
private readonly Environment $twig,

src/User/Controller/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Serializer\Encoder\JsonEncoder;
1616
use Symfony\Component\Serializer\SerializerInterface;
1717

18-
class UserController
18+
final class UserController
1919
{
2020
public function __construct(
2121
private readonly SerializerInterface $serializer,

0 commit comments

Comments
 (0)