File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Bundle \MakerBundle \Str ;
16
16
use Symfony \Bundle \MakerBundle \Util \ClassSource \Model \ClassProperty ;
17
17
use Symfony \Bundle \MakerBundle \Util \ClassSourceManipulator ;
18
+ use Symfony \Component \HttpKernel \Kernel ;
18
19
use Symfony \Component \Security \Core \User \PasswordAuthenticatedUserInterface ;
19
20
use Symfony \Component \Security \Core \User \UserInterface ;
20
21
@@ -37,7 +38,10 @@ public function addUserInterfaceImplementation(ClassSourceManipulator $manipulat
37
38
38
39
$ this ->addPasswordImplementation ($ manipulator , $ userClassConfig );
39
40
40
- $ this ->addEraseCredentials ($ manipulator );
41
+ /* @legacy - Remove "eraseCredentials()" when Symfony 7.4 is no longer supported */
42
+ if (Kernel::VERSION_ID < 70300 ) {
43
+ $ this ->addEraseCredentials ($ manipulator );
44
+ }
41
45
}
42
46
43
47
private function addPasswordImplementation (ClassSourceManipulator $ manipulator , UserClassConfiguration $ userClassConfig ): void
You can’t perform that action at this time.
0 commit comments