29
29
use Symfony \Bundle \MakerBundle \Util \ClassSource \Model \ClassProperty ;
30
30
use Symfony \Bundle \MakerBundle \Util \ClassSourceManipulator ;
31
31
use Symfony \Bundle \MakerBundle \Util \CliOutputHelper ;
32
- use Symfony \Bundle \MakerBundle \Util \PhpCompatUtil ;
33
32
use Symfony \Bundle \MakerBundle \Validator ;
34
33
use Symfony \Component \Console \Command \Command ;
35
34
use Symfony \Component \Console \Input \InputArgument ;
@@ -48,15 +47,13 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface
48
47
{
49
48
private Generator $ generator ;
50
49
private EntityClassGenerator $ entityClassGenerator ;
51
- private PhpCompatUtil $ phpCompatUtil ;
52
50
53
51
public function __construct (
54
52
private FileManager $ fileManager ,
55
53
private DoctrineHelper $ doctrineHelper ,
56
54
?string $ projectDirectory = null ,
57
55
?Generator $ generator = null ,
58
56
?EntityClassGenerator $ entityClassGenerator = null ,
59
- ?PhpCompatUtil $ phpCompatUtil = null ,
60
57
) {
61
58
if (null !== $ projectDirectory ) {
62
59
@trigger_error ('The $projectDirectory constructor argument is no longer used since 1.41.0 ' , \E_USER_DEPRECATED );
@@ -75,13 +72,6 @@ public function __construct(
75
72
} else {
76
73
$ this ->entityClassGenerator = $ entityClassGenerator ;
77
74
}
78
-
79
- if (null === $ phpCompatUtil ) {
80
- @trigger_error (sprintf ('Passing a "%s" instance as 6th argument is mandatory since version 1.41.0 ' , PhpCompatUtil::class), \E_USER_DEPRECATED );
81
- $ this ->phpCompatUtil = new PhpCompatUtil ($ this ->fileManager );
82
- } else {
83
- $ this ->phpCompatUtil = $ phpCompatUtil ;
84
- }
85
75
}
86
76
87
77
public static function getCommandName (): string
0 commit comments