Skip to content

Commit c7ae534

Browse files
committed
Mark classes a final
1 parent 11bc04e commit c7ae534

37 files changed

Lines changed: 37 additions & 118 deletions

src/Command/ActivateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
* @author Antoine Hérault <antoine.herault@gmail.com>
2525
*
2626
* @internal
27-
*
28-
* @final
2927
*/
3028
#[AsCommand(name: 'fos:user:activate', description: 'Activate a user')]
31-
class ActivateUserCommand extends Command
29+
final class ActivateUserCommand extends Command
3230
{
3331
// BC with Symfony <5.3
3432
protected static $defaultName = 'fos:user:activate';

src/Command/ChangePasswordCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222

2323
/**
2424
* @internal
25-
*
26-
* @final
2725
*/
2826
#[AsCommand(name: 'fos:user:change-password', description: 'Change the password of a user.')]
29-
class ChangePasswordCommand extends Command
27+
final class ChangePasswordCommand extends Command
3028
{
3129
// BC with Symfony <5.3
3230
protected static $defaultName = 'fos:user:change-password';

src/Command/CreateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
* @author Luis Cordova <cordoval@gmail.com>
2828
*
2929
* @internal
30-
*
31-
* @final
3230
*/
3331
#[AsCommand(name: 'fos:user:create', description: 'Create a user.')]
34-
class CreateUserCommand extends Command
32+
final class CreateUserCommand extends Command
3533
{
3634
// BC with Symfony <5.3
3735
protected static $defaultName = 'fos:user:create';

src/Command/DeactivateUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
* @author Antoine Hérault <antoine.herault@gmail.com>
2525
*
2626
* @internal
27-
*
28-
* @final
2927
*/
3028
#[AsCommand(name: 'fos:user:deactivate', description: 'Deactivate a user')]
31-
class DeactivateUserCommand extends Command
29+
final class DeactivateUserCommand extends Command
3230
{
3331
// BC with Symfony <5.3
3432
protected static $defaultName = 'fos:user:deactivate';

src/Command/DemoteUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
* @author Lenar Lõhmus <lenar@city.ee>
2121
*
2222
* @internal
23-
*
24-
* @final
2523
*/
2624
#[AsCommand(name: 'fos:user:demote', description: 'Demote a user by removing a role')]
27-
class DemoteUserCommand extends RoleCommand
25+
final class DemoteUserCommand extends RoleCommand
2826
{
2927
// BC with Symfony <5.3
3028
protected static $defaultName = 'fos:user:demote';

src/Command/PromoteUserCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
* @author Lenar Lõhmus <lenar@city.ee>
2323
*
2424
* @internal
25-
*
26-
* @final
2725
*/
2826
#[AsCommand(name: 'fos:user:promote', description: 'Promotes a user by adding a role')]
29-
class PromoteUserCommand extends RoleCommand
27+
final class PromoteUserCommand extends RoleCommand
3028
{
3129
// BC with Symfony <5.3
3230
protected static $defaultName = 'fos:user:promote';

src/Controller/ChangePasswordController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@
3131
*
3232
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
3333
* @author Christophe Coevoet <stof@notk.org>
34-
*
35-
* @final
3634
*/
37-
class ChangePasswordController extends AbstractController
35+
final class ChangePasswordController extends AbstractController
3836
{
3937
private $eventDispatcher;
4038
private $formFactory;

src/Controller/ProfileController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
* Controller managing the user profile.
3131
*
3232
* @author Christophe Coevoet <stof@notk.org>
33-
*
34-
* @final
3533
*/
36-
class ProfileController extends AbstractController
34+
final class ProfileController extends AbstractController
3735
{
3836
private $eventDispatcher;
3937
private $formFactory;

src/Controller/RegistrationController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@
3333
*
3434
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
3535
* @author Christophe Coevoet <stof@notk.org>
36-
*
37-
* @final
3836
*/
39-
class RegistrationController extends AbstractController
37+
final class RegistrationController extends AbstractController
4038
{
4139
private $eventDispatcher;
4240
private $formFactory;

src/Controller/ResettingController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@
3232
*
3333
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
3434
* @author Christophe Coevoet <stof@notk.org>
35-
*
36-
* @final
3735
*/
38-
class ResettingController extends AbstractController
36+
final class ResettingController extends AbstractController
3937
{
4038
private $eventDispatcher;
4139
private $formFactory;

0 commit comments

Comments
 (0)