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