public function sendSubscribeToNewsletterMessage(Actor $user)
    {
        $templateName = 'CoreBundle:Email:subscription.email.html.twig';

        $context = array(
            'user' => $user
        );

        $this->sendMessage(
                $templateName, 
                $context,  
                $this->twigGlobal->getParameter('admin_email'), 
                $user->getEmail()
                );
    }
public function sendSubscribeToNewsletterMessage(Actor $user)
    {
        $templateName = 'CoreBundle:Email:subscription.email.html.twig';

        $context = array(
            'user' => $user
        );

        $this->sendMessage(
                $templateName, 
                $context,  
                $this->twigGlobal->getParameter('admin_email'), 
                $user->getEmail()
                );
    }
public function sendSubscribeToNewsletterMessage ( Actor $ user ) { $ templateName = 'CoreBundle:Email:subscription.email.html.twig' ; $ context = array ( 'user' => $ user ) ; $ this -> sendMessage ( $ templateName , $ context , $ this -> twigGlobal -> getParameter ( 'admin_email' ) , $ user -> getEmail ( ) ) ; }
Send an email to a user to confirm the subscription

@param UserInterface $user

@return void
Send an email to a user to confirm the subscription