File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1515use Symfony \Bundle \MakerBundle \Str ;
1616use Symfony \Bundle \MakerBundle \Util \ClassSource \Model \ClassProperty ;
1717use Symfony \Bundle \MakerBundle \Util \ClassSourceManipulator ;
18+ use Symfony \Component \HttpKernel \Kernel ;
1819use Symfony \Component \Security \Core \User \PasswordAuthenticatedUserInterface ;
1920use Symfony \Component \Security \Core \User \UserInterface ;
2021
@@ -37,7 +38,10 @@ public function addUserInterfaceImplementation(ClassSourceManipulator $manipulat
3738
3839 $ this ->addPasswordImplementation ($ manipulator , $ userClassConfig );
3940
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+ }
4145 }
4246
4347 private function addPasswordImplementation (ClassSourceManipulator $ manipulator , UserClassConfiguration $ userClassConfig ): void
You can’t perform that action at this time.
0 commit comments