1 | <?php |
||
10 | class UserEntityEventListener |
||
11 | { |
||
12 | private $userPasswordEncoder; |
||
13 | |||
14 | 19 | public function __construct(UserPasswordEncoderInterface $userPasswordEncoder) |
|
18 | |||
19 | 8 | public function prePersist(LifecycleEventArgs $event): void |
|
23 | |||
24 | 1 | public function preUpdate(LifecycleEventArgs $event): void |
|
28 | |||
29 | 9 | private function process(LifecycleEventArgs $event): void |
|
39 | |||
40 | 6 | private function changePassword(User $user): void |
|
49 | } |