| 1 | <?php |
||
| 11 | class UserEntityEventListener |
||
| 12 | { |
||
| 13 | private $userPasswordEncoder; |
||
| 14 | |||
| 15 | 40 | public function __construct(UserPasswordEncoderInterface $userPasswordEncoder) |
|
| 19 | |||
| 20 | 34 | public function prePersist(LifecycleEventArgs $event): void |
|
| 24 | |||
| 25 | 12 | public function preUpdate(LifecycleEventArgs $event): void |
|
| 29 | |||
| 30 | 40 | private function process(LifecycleEventArgs $event): void |
|
| 40 | |||
| 41 | 9 | private function changePassword(User $user): void |
|
| 50 | } |
||
| 51 |