public function onNewsletterSubscribeFlush(NewsletterSubscriptionEvent $event)
    {
        $subscription = $event->getNewsletterSubscription();

        $this->newsletterObjectManager->persist($subscription);
        $this->newsletterObjectManager->flush($subscription);
    }
public function onNewsletterSubscribeFlush(NewsletterSubscriptionEvent $event)
    {
        $subscription = $event->getNewsletterSubscription();

        $this->newsletterObjectManager->persist($subscription);
        $this->newsletterObjectManager->flush($subscription);
    }
public function onNewsletterSubscribeFlush ( NewsletterSubscriptionEvent $ event ) { $ subscription = $ event -> getNewsletterSubscription ( ) ; $ this -> newsletterObjectManager -> persist ( $ subscription ) ; $ this -> newsletterObjectManager -> flush ( $ subscription ) ; }
Subscribed on newsletter subscription.

@param NewsletterSubscriptionEvent $event Event
Subscribed on newsletter subscription .