Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class SendActivationMailListener implements EventSubscriberInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var MailerInterface |
||
23 | */ |
||
24 | private $mailer; |
||
25 | |||
26 | /** |
||
27 | * @var TokenFactoryInterface |
||
28 | */ |
||
29 | private $tokenFactory; |
||
30 | |||
31 | function __construct(MailerInterface $mailer, TokenFactoryInterface $tokenFactory) |
||
32 | { |
||
33 | $this->mailer = $mailer; |
||
34 | $this->tokenFactory = $tokenFactory; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public static function getSubscribedEvents() |
||
44 | ]; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param UserEvent $event |
||
49 | */ |
||
50 | public function onUserCreated(UserEvent $event) |
||
57 | } |
||
58 | } |
||
60 |