Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class SendPasswordResetMailListener implements EventSubscriberInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var MailerInterface |
||
24 | */ |
||
25 | private $mailer; |
||
26 | |||
27 | /** |
||
28 | * @var TokenFactoryInterface |
||
29 | */ |
||
30 | private $tokenFactory; |
||
31 | |||
32 | public function __construct(MailerInterface $mailer, TokenFactoryInterface $tokenFactory) |
||
33 | { |
||
34 | $this->mailer = $mailer; |
||
35 | $this->tokenFactory = $tokenFactory; |
||
36 | } |
||
37 | |||
38 | public static function getSubscribedEvents(): array |
||
42 | ]; |
||
43 | } |
||
44 | |||
45 | public function onResetPasswordRequest(ResetPasswordRequestEvent $event): void |
||
52 |