Skip to content

Commit 37bcfbd

Browse files
committed
Revert "[make:*] generate all classes with final keyword"
This reverts commit 5f6759d
1 parent 90268d9 commit 37bcfbd

34 files changed

+34
-34
lines changed

src/Resources/skeleton/Class.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace <?= $namespace; ?>;
44

5-
final class <?= $class_name."\n" ?>
5+
class <?= $class_name."\n" ?>
66
{
77
}

src/Resources/skeleton/command/Command.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name: '<?= $command_name; ?>',
99
description: 'Add a short description for your command',
1010
)]
11-
final class <?= $class_name; ?> extends Command
11+
class <?= $class_name; ?> extends Command
1212
{
1313
public function __construct()
1414
{

src/Resources/skeleton/controller/Controller.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name; ?> extends AbstractController
7+
class <?= $class_name; ?> extends AbstractController
88
{
99
<?= $generator->generateRouteForControllerMethod($route_path, $route_name); ?>
1010
public function <?= $method_name ?>(): <?php if ($with_template) { ?>Response<?php } else { ?>JsonResponse<?php } ?>

src/Resources/skeleton/crud/controller/Controller.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<?= $use_statements; ?>
66

77
#[Route('<?= $route_path ?>')]
8-
final class <?= $class_name ?> extends AbstractController
8+
class <?= $class_name ?> extends AbstractController
99
{
1010
<?= $generator->generateRouteForControllerMethod('/', sprintf('%s_index', $route_name), ['GET']) ?>
1111
<?php if (isset($repository_full_class_name)): ?>

src/Resources/skeleton/doctrine/Entity.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<?php if ($broadcast): ?>
1919
#[Broadcast]
2020
<?php endif ?>
21-
final class <?= $class_name."\n" ?>
21+
class <?= $class_name."\n" ?>
2222
{
2323
<?php if (EntityIdTypeEnum::UUID === $id_type): ?>
2424
#[ORM\Id]

src/Resources/skeleton/doctrine/Fixtures.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> extends Fixture
7+
class <?= $class_name ?> extends Fixture
88
{
99
public function load(ObjectManager $manager): void
1010
{

src/Resources/skeleton/doctrine/Repository.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @extends ServiceEntityRepository<<?= $entity_class_name; ?>>
99
*/
10-
final class <?= $class_name; ?> extends ServiceEntityRepository<?= $with_password_upgrade ? " implements PasswordUpgraderInterface\n" : "\n" ?>
10+
class <?= $class_name; ?> extends ServiceEntityRepository<?= $with_password_upgrade ? " implements PasswordUpgraderInterface\n" : "\n" ?>
1111
{
1212
public function __construct(ManagerRegistry $registry)
1313
{

src/Resources/skeleton/event/Subscriber.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> implements EventSubscriberInterface
7+
class <?= $class_name ?> implements EventSubscriberInterface
88
{
99
public function <?= $method_name ?>(<?= $event_arg ?>): void
1010
{

src/Resources/skeleton/form/Type.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> extends AbstractType
7+
class <?= $class_name ?> extends AbstractType
88
{
99
public function buildForm(FormBuilderInterface $builder, array $options): void
1010
{

src/Resources/skeleton/registration/RegistrationController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name; ?> extends AbstractController
7+
class <?= $class_name; ?> extends AbstractController
88
{
99
<?php if ($will_verify_email): ?>
1010
public function __construct(private <?= $generator->getPropertyType($email_verifier_class_details) ?>$emailVerifier)

src/Resources/skeleton/registration/Test.WithVerify.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<?= $use_statements ?>
55

6-
final class RegistrationControllerTest extends WebTestCase
6+
class RegistrationControllerTest extends WebTestCase
77
{
88
private KernelBrowser $client;
99
private <?= $repository_class_name ?> $userRepository;

src/Resources/skeleton/registration/Test.WithoutVerify.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<?= $use_statements ?>
55

6-
final class RegistrationControllerTest extends WebTestCase
6+
class RegistrationControllerTest extends WebTestCase
77
{
88
private KernelBrowser $client;
99
private <?= $repository_class_name ?> $userRepository;

src/Resources/skeleton/resetPassword/ChangePasswordFormType.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements ?>
66

7-
final class <?= $class_name ?> extends AbstractType
7+
class <?= $class_name ?> extends AbstractType
88
{
99
public function buildForm(FormBuilderInterface $builder, array $options): void
1010
{

src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<?= $use_statements; ?>
66

77
#[Route('/reset-password')]
8-
final class <?= $class_name ?> extends AbstractController
8+
class <?= $class_name ?> extends AbstractController
99
{
1010
use ResetPasswordControllerTrait;
1111

src/Resources/skeleton/resetPassword/ResetPasswordRequestFormType.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements ?>
66

7-
final class <?= $class_name ?> extends AbstractType
7+
class <?= $class_name ?> extends AbstractType
88
{
99
public function buildForm(FormBuilderInterface $builder, array $options): void
1010
{

src/Resources/skeleton/resetPassword/Test.ResetPasswordController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<?= $use_statements ?>
55

6-
final class ResetPasswordTest extends WebTestCase
6+
class ResetPasswordTest extends WebTestCase
77
{
88
private KernelBrowser $client;
99
private EntityManagerInterface $em;

src/Resources/skeleton/security/UserProvider.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> implements UserProviderInterface, PasswordUpgraderInterface
7+
class <?= $class_name ?> implements UserProviderInterface, PasswordUpgraderInterface
88
{
99
/**
1010
* Symfony calls this method if you use features like switch_user

src/Resources/skeleton/security/custom/Authenticator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @see https://symfony.com/doc/current/security/custom_authenticator.html
99
*/
10-
final class <?= $class_short_name ?> extends AbstractAuthenticator
10+
class <?= $class_short_name ?> extends AbstractAuthenticator
1111
{
1212
/**
1313
* Called on every request to decide if this authenticator should be

src/Resources/skeleton/security/formLogin/LoginController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $controller_name ?> extends AbstractController
7+
class <?= $controller_name ?> extends AbstractController
88
{
99
#[Route(path: '/login', name: 'app_login')]
1010
public function login(AuthenticationUtils $authenticationUtils): Response

src/Resources/skeleton/security/formLogin/Test.LoginController.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<?= $use_statements ?>
55

6-
final class LoginControllerTest extends WebTestCase
6+
class LoginControllerTest extends WebTestCase
77
{
88
private KernelBrowser $client;
99

src/Resources/skeleton/serializer/Encoder.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> implements EncoderInterface, DecoderInterface
7+
class <?= $class_name ?> implements EncoderInterface, DecoderInterface
88
{
99
public const FORMAT = '<?= $format ?>';
1010

src/Resources/skeleton/serializer/Normalizer.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name ?> implements NormalizerInterface
7+
class <?= $class_name ?> implements NormalizerInterface
88
{
99
public function __construct(
1010
#[Autowire(service: 'serializer.normalizer.object')]

src/Resources/skeleton/test/ApiTestCase.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use <?= $api_test_case_fqcn; ?>;
66

7-
final class <?= $class_name ?> extends ApiTestCase
7+
class <?= $class_name ?> extends ApiTestCase
88
{
99
public function testSomething(): void
1010
{

src/Resources/skeleton/test/Functional.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<?= $use_statements ?>
77

8-
final class <?= $class_name ?> extends <?= $panther_is_available ? 'PantherTestCase' : 'WebTestCase' ?><?= "\n" ?>
8+
class <?= $class_name ?> extends <?= $panther_is_available ? 'PantherTestCase' : 'WebTestCase' ?><?= "\n" ?>
99
{
1010
public function testSomething(): void
1111
{

src/Resources/skeleton/test/KernelTestCase.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
66

7-
final class <?= $class_name ?> extends KernelTestCase
7+
class <?= $class_name ?> extends KernelTestCase
88
{
99
public function testSomething(): void
1010
{

src/Resources/skeleton/test/PantherTestCase.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Component\Panther\PantherTestCase;
66

7-
final class <?= $class_name ?> extends PantherTestCase
7+
class <?= $class_name ?> extends PantherTestCase
88
{
99
public function testSomething(): void
1010
{

src/Resources/skeleton/test/TestCase.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPUnit\Framework\TestCase;
66

7-
final class <?= $class_name ?> extends TestCase
7+
class <?= $class_name ?> extends TestCase
88
{
99
public function testSomething(): void
1010
{

src/Resources/skeleton/test/Unit.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<?= $use_statements; ?>
77

8-
final class <?= $class_name ?> extends TestCase
8+
class <?= $class_name ?> extends TestCase
99
{
1010
public function testSomething(): void
1111
{

src/Resources/skeleton/test/WebTestCase.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
66

7-
final class <?= $class_name ?> extends WebTestCase
7+
class <?= $class_name ?> extends WebTestCase
88
{
99
public function testSomething(): void
1010
{

src/Resources/skeleton/twig/Extension.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements ?>
66

7-
final class <?= $class_name ?> extends AbstractExtension
7+
class <?= $class_name ?> extends AbstractExtension
88
{
99
public function getFilters(): array
1010
{

src/Resources/skeleton/twig/Runtime.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements ?>
66

7-
final class <?= $class_name ?> implements RuntimeExtensionInterface
7+
class <?= $class_name ?> implements RuntimeExtensionInterface
88
{
99
public function __construct()
1010
{

src/Resources/skeleton/validator/Constraint.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
1111
*/
1212
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
13-
final class <?= $class_name ?> extends Constraint
13+
class <?= $class_name ?> extends Constraint
1414
{
1515
/*
1616
* Any public properties become valid options for the annotation.

src/Resources/skeleton/validator/Validator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\Validator\Constraint;
66
use Symfony\Component\Validator\ConstraintValidator;
77

8-
final class <?= $class_name ?> extends ConstraintValidator
8+
class <?= $class_name ?> extends ConstraintValidator
99
{
1010
public function validate($value, Constraint $constraint)
1111
{

src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<?= $use_statements; ?>
66

7-
final class <?= $class_name; ?><?= "\n" ?>
7+
class <?= $class_name; ?><?= "\n" ?>
88
{
99
public function __construct(
1010
private VerifyEmailHelperInterface $verifyEmailHelper,

0 commit comments

Comments
 (0)