original_string: private function _sendNotification($aDiff, &$oRemoteApp, $aNewHistory)
          {
  
              // parse template
              $sHtml = $this->getContainer()->get('templating')->render('SlashworksAppBundle:Email:cron_notification.html.twig', array(
                  'diff'       => $aDiff,
                  'log'        => $aNewHistory['Log'],
                  'remote_app' => $oRemoteApp,
                  'controlurl' => $this->_getSiteURL()
              ));
  
              // get recipients
              $sRecipient = $oRemoteApp->getNotificationRecipient();
              // get sender
              $sSender = $oRemoteApp->getNotificationSender();
  
              // set subject and body of mail
              $sMessage = \Swift_Message::newInstance()->setSubject($this->getContainer()->get('translator')->trans('system.email.change.subject'))->setFrom($sSender)->setTo($sRecipient)->setContentType('text/html')->setBody($sHtml, 'text/html')->addPart($sHtml, 'text/html');
  
              // send email
              $this->getContainer()->get('mailer')->send($sMessage);
          }
code: private function _sendNotification($aDiff, &$oRemoteApp, $aNewHistory)
          {
  
              // parse template
              $sHtml = $this->getContainer()->get('templating')->render('SlashworksAppBundle:Email:cron_notification.html.twig', array(
                  'diff'       => $aDiff,
                  'log'        => $aNewHistory['Log'],
                  'remote_app' => $oRemoteApp,
                  'controlurl' => $this->_getSiteURL()
              ));
  
              // get recipients
              $sRecipient = $oRemoteApp->getNotificationRecipient();
              // get sender
              $sSender = $oRemoteApp->getNotificationSender();
  
              // set subject and body of mail
              $sMessage = \Swift_Message::newInstance()->setSubject($this->getContainer()->get('translator')->trans('system.email.change.subject'))->setFrom($sSender)->setTo($sRecipient)->setContentType('text/html')->setBody($sHtml, 'text/html')->addPart($sHtml, 'text/html');
  
              // send email
              $this->getContainer()->get('mailer')->send($sMessage);
          }
code_tokens: private function _sendNotification ( $ aDiff , & $ oRemoteApp , $ aNewHistory ) { // parse template $ sHtml = $ this -> getContainer ( ) -> get ( 'templating' ) -> render ( 'SlashworksAppBundle:Email:cron_notification.html.twig' , array ( 'diff' => $ aDiff , 'log' => $ aNewHistory [ 'Log' ] , 'remote_app' => $ oRemoteApp , 'controlurl' => $ this -> _getSiteURL ( ) ) ) ; // get recipients $ sRecipient = $ oRemoteApp -> getNotificationRecipient ( ) ; // get sender $ sSender = $ oRemoteApp -> getNotificationSender ( ) ; // set subject and body of mail $ sMessage = \ Swift_Message :: newInstance ( ) -> setSubject ( $ this -> getContainer ( ) -> get ( 'translator' ) -> trans ( 'system.email.change.subject' ) ) -> setFrom ( $ sSender ) -> setTo ( $ sRecipient ) -> setContentType ( 'text/html' ) -> setBody ( $ sHtml , 'text/html' ) -> addPart ( $ sHtml , 'text/html' ) ; // send email $ this -> getContainer ( ) -> get ( 'mailer' ) -> send ( $ sMessage ) ; }
docstring: Send Notification to user
  
  @param array               $aDiff
  @param RemoteApp           $oRemoteApp
  @param RemoteHistoryContao $aNewHistory
  
  @return void
docstring_tokens: Send Notification to user