| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class FeedbackNotificationSubscriber implements EventSubscriberInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var SwiftMailerAdapter |
||
| 17 | */ |
||
| 18 | private $mailer; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var TranslatorInterface |
||
| 22 | */ |
||
| 23 | private $translator; |
||
| 24 | |||
| 25 | public function __construct(SwiftMailerAdapter $mailer, TranslatorInterface $translator) |
||
| 26 | { |
||
| 27 | $this->mailer = $mailer; |
||
| 28 | $this->translator = $translator; |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function getSubscribedEvents(): array |
||
| 32 | { |
||
| 33 | return [ |
||
| 34 | ContactFormSubmittedEvent::class => 'onContactFormSubmitted', |
||
| 35 | ]; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function onContactFormSubmitted(ContactFormSubmittedEvent $event): void |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |