public function handleExists(SubscriberInterface $subscriber)
 {
     $subscriber = $this->localStorage->getSubscriber($subscriber);
     if (!$subscriber->isActive()) {
         $this->setToken($subscriber);
         $this->notifySubscriber($subscriber);
         return 'subscriber.form.error.sent_again';
     }
     return 'subscriber.form.error.exists';
 }
Exemple #2
0
 public function exists(SubscriberInterface $subscriber, $groupNames)
 {
     return $this->localStorage->exists($subscriber, $groupNames) || $this->getSubscriberManager()->getStorage()->exists($subscriber, $groupNames);
 }