| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class ResendActvationMailListener implements EventSubscriberInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var MailerInterface |
||
| 25 | */ |
||
| 26 | private $mailer; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var TokenFactoryInterface |
||
| 30 | */ |
||
| 31 | private $tokenFactory; |
||
| 32 | |||
| 33 | public function __construct(MailerInterface $mailer, TokenFactoryInterface $tokenFactory) |
||
| 34 | { |
||
| 35 | $this->mailer = $mailer; |
||
| 36 | $this->tokenFactory = $tokenFactory; |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function getSubscribedEvents(): array |
||
| 40 | { |
||
| 41 | return [AdminSecurityEvents::RESEND_ACTIVATION_TOKEN => 'resendActivationMail']; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function resendActivationMail(ActivationEvent $event): void |
||
| 54 | } |
||
| 55 | } |
||
| 56 |