30
30
use Symfony \Bundle \MakerBundle \Util \ClassSource \Model \ClassProperty ;
31
31
use Symfony \Bundle \MakerBundle \Util \ClassSourceManipulator ;
32
32
use Symfony \Bundle \MakerBundle \Util \CliOutputHelper ;
33
- use Symfony \Bundle \MakerBundle \Util \PhpCompatUtil ;
34
33
use Symfony \Bundle \MakerBundle \Validator ;
35
34
use Symfony \Bundle \MercureBundle \DependencyInjection \MercureExtension ;
36
35
use Symfony \Component \Console \Command \Command ;
@@ -50,15 +49,13 @@ final class MakeEntity extends AbstractMaker implements InputAwareMakerInterface
50
49
{
51
50
private Generator $ generator ;
52
51
private EntityClassGenerator $ entityClassGenerator ;
53
- private PhpCompatUtil $ phpCompatUtil ;
54
52
55
53
public function __construct (
56
54
private FileManager $ fileManager ,
57
55
private DoctrineHelper $ doctrineHelper ,
58
56
?string $ projectDirectory = null ,
59
57
?Generator $ generator = null ,
60
58
?EntityClassGenerator $ entityClassGenerator = null ,
61
- ?PhpCompatUtil $ phpCompatUtil = null ,
62
59
) {
63
60
if (null !== $ projectDirectory ) {
64
61
@trigger_error ('The $projectDirectory constructor argument is no longer used since 1.41.0 ' , \E_USER_DEPRECATED );
@@ -77,13 +74,6 @@ public function __construct(
77
74
} else {
78
75
$ this ->entityClassGenerator = $ entityClassGenerator ;
79
76
}
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
- }
87
77
}
88
78
89
79
public static function getCommandName (): string
0 commit comments