public function synchronize(SubscriberListInterface $list)
    {
        $listData = $this->listRepository->findById($list->getListId());

        // get Subscribers from the provider
        $subscribers = $list->getProvider()->getSubscribers();

        // unsubscribe difference
        $this->unsubscribeDifference($list->getListId(), $subscribers);
        // subscribe the rest
        return $this->batchSubscribe($list->getListId(), $subscribers);
    }
public function synchronize(SubscriberListInterface $list)
    {
        $listData = $this->listRepository->findById($list->getListId());

        // get Subscribers from the provider
        $subscribers = $list->getProvider()->getSubscribers();

        // unsubscribe difference
        $this->unsubscribeDifference($list->getListId(), $subscribers);
        // subscribe the rest
        return $this->batchSubscribe($list->getListId(), $subscribers);
    }
public function synchronize ( SubscriberListInterface $ list ) { $ listData = $ this -> listRepository -> findById ( $ list -> getListId ( ) ) ; // get Subscribers from the provider $ subscribers = $ list -> getProvider ( ) -> getSubscribers ( ) ; // unsubscribe difference $ this -> unsubscribeDifference ( $ list -> getListId ( ) , $ subscribers ) ; // subscribe the rest return $ this -> batchSubscribe ( $ list -> getListId ( ) , $ subscribers ) ; }
Synchronise user from provider with MailChimp List
@param SubscriberListInterface $list
@return void
Synchronise user from provider with MailChimp List