Skip to content

Commit f661302

Browse files
authored
feature #1452 [make:entity] remove PhpCompatUtil constructor argument
1 parent 7748414 commit f661302

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/Maker/MakeEntity.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Symfony\Bundle\MakerBundle\Util\ClassSource\Model\ClassProperty;
3131
use Symfony\Bundle\MakerBundle\Util\ClassSourceManipulator;
3232
use Symfony\Bundle\MakerBundle\Util\CliOutputHelper;
33-
use Symfony\Bundle\MakerBundle\Util\PhpCompatUtil;
3433
use Symfony\Bundle\MakerBundle\Validator;
3534
use Symfony\Bundle\MercureBundle\DependencyInjection\MercureExtension;
3635
use Symfony\Component\Console\Command\Command;
@@ -50,15 +49,13 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface
5049
{
5150
private Generator $generator;
5251
private EntityClassGenerator $entityClassGenerator;
53-
private PhpCompatUtil $phpCompatUtil;
5452

5553
public function __construct(
5654
private FileManager $fileManager,
5755
private DoctrineHelper $doctrineHelper,
5856
?string $projectDirectory = null,
5957
?Generator $generator = null,
6058
?EntityClassGenerator $entityClassGenerator = null,
61-
?PhpCompatUtil $phpCompatUtil = null,
6259
) {
6360
if (null !== $projectDirectory) {
6461
@trigger_error('The $projectDirectory constructor argument is no longer used since 1.41.0', \E_USER_DEPRECATED);
@@ -77,13 +74,6 @@ public function __construct(
7774
} else {
7875
$this->entityClassGenerator = $entityClassGenerator;
7976
}
80-
81-
if (null === $phpCompatUtil) {
82-
@trigger_error(sprintf('Passing a "%s" instance as 6th argument is mandatory since version 1.41.0', PhpCompatUtil::class), \E_USER_DEPRECATED);
83-
$this->phpCompatUtil = new PhpCompatUtil($this->fileManager);
84-
} else {
85-
$this->phpCompatUtil = $phpCompatUtil;
86-
}
8777
}
8878

8979
public static function getCommandName(): string

src/Resources/config/makers.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<argument>null</argument>
4646
<argument type="service" id="maker.generator" />
4747
<argument type="service" id="maker.entity_class_generator" />
48-
<argument type="service" id="maker.php_compat_util" />
4948
<tag name="maker.command" />
5049
</service>
5150

0 commit comments

Comments
 (0)