Skip to content

Commit d24a930

Browse files
committed
cleanup: use final classes
1 parent 04c1798 commit d24a930

24 files changed

+24
-24
lines changed

src/Controller/Admin/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040
#[Route('/admin/post')]
4141
#[IsGranted(User::ROLE_ADMIN)]
42-
class BlogController extends AbstractController
42+
final class BlogController extends AbstractController
4343
{
4444
/**
4545
* Lists all Post entities.

src/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @author Javier Eguiluz <[email protected]>
3737
*/
3838
#[Route('/blog')]
39-
class BlogController extends AbstractController
39+
final class BlogController extends AbstractController
4040
{
4141
/**
4242
* NOTE: For standard formats, Symfony will also automatically choose the best

src/Controller/SecurityController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @author Ryan Weaver <[email protected]>
2828
* @author Javier Eguiluz <[email protected]>
2929
*/
30-
class SecurityController extends AbstractController
30+
final class SecurityController extends AbstractController
3131
{
3232
use TargetPathTrait;
3333

src/Controller/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Romain Monteil <[email protected]>
3333
*/
3434
#[Route('/profile'), IsGranted(User::ROLE_USER)]
35-
class UserController extends AbstractController
35+
final class UserController extends AbstractController
3636
{
3737
#[Route('/edit', name: 'user_edit', methods: ['GET', 'POST'])]
3838
public function edit(

src/DataFixtures/AppFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use Symfony\Component\String\Slugger\SluggerInterface;
2323
use function Symfony\Component\String\u;
2424

25-
class AppFixtures extends Fixture
25+
final class AppFixtures extends Fixture
2626
{
2727
public function __construct(
2828
private readonly UserPasswordHasherInterface $passwordHasher,

src/Event/CommentCreatedEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use App\Entity\Comment;
1515
use Symfony\Contracts\EventDispatcher\Event;
1616

17-
class CommentCreatedEvent extends Event
17+
final class CommentCreatedEvent extends Event
1818
{
1919
public function __construct(
2020
protected Comment $comment

src/EventSubscriber/CheckRequirementsSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @author Javier Eguiluz <[email protected]>
3131
*/
32-
class CheckRequirementsSubscriber implements EventSubscriberInterface
32+
final class CheckRequirementsSubscriber implements EventSubscriberInterface
3333
{
3434
public function __construct(
3535
private readonly EntityManagerInterface $entityManager

src/EventSubscriber/CommentNotificationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Oleg Voronkovich <[email protected]>
2727
*/
28-
class CommentNotificationSubscriber implements EventSubscriberInterface
28+
final class CommentNotificationSubscriber implements EventSubscriberInterface
2929
{
3030
public function __construct(
3131
private readonly MailerInterface $mailer,

src/EventSubscriber/ControllerSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author Ryan Weaver <[email protected]>
2424
* @author Javier Eguiluz <[email protected]>
2525
*/
26-
class ControllerSubscriber implements EventSubscriberInterface
26+
final class ControllerSubscriber implements EventSubscriberInterface
2727
{
2828
public function __construct(
2929
private readonly SourceCodeExtension $twigExtension

src/EventSubscriber/RedirectToPreferredLocaleSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @author Oleg Voronkovich <[email protected]>
2828
*/
29-
class RedirectToPreferredLocaleSubscriber implements EventSubscriberInterface
29+
final class RedirectToPreferredLocaleSubscriber implements EventSubscriberInterface
3030
{
3131
/**
3232
* @var string[]

0 commit comments

Comments
 (0)