/**
  * @param ConfirmSubscriptionEvent $event
  */
 public function confirm(ConfirmSubscriptionEvent $event)
 {
     global $container;
     /** @var LoggerInterface $logger */
     $logger = $container['avisota.logger.subscription'];
     $subscription = $event->getSubscription();
     $recipient = $subscription->getRecipient();
     $logger->info(sprintf('Recipient %s confirmed subscription to %s', $recipient->getEmail(), $subscription->getMailingList() ? $subscription->getMailingList()->getTitle() : 'global'));
 }
 /**
  * @param ConfirmSubscriptionEvent $event
  */
 public function confirm(ConfirmSubscriptionEvent $event)
 {
     $this->sendNotification('avisota_confirm_subscription', $event->getSubscription());
 }