original_string: protected function sendNotification($to, array $changedValues)
      {
          $message = \Swift_Message::newInstance()
              ->setSubject('User details updated')
              ->setFrom($this->getContainer()->getParameter('fos_user.resetting.email.from_email'))
              ->setTo($to)
              ->setBody(
                  $this->getContainer()->get('twig')->render(
                      '@WebtownKunstmaanExtension/email/user_edit.html.twig',
                      ['changes' => $changedValues]
                  ),
                  'text/html'
              );
          $this->getContainer()->get('mailer')->send($message);
      }
code: protected function sendNotification($to, array $changedValues)
      {
          $message = \Swift_Message::newInstance()
              ->setSubject('User details updated')
              ->setFrom($this->getContainer()->getParameter('fos_user.resetting.email.from_email'))
              ->setTo($to)
              ->setBody(
                  $this->getContainer()->get('twig')->render(
                      '@WebtownKunstmaanExtension/email/user_edit.html.twig',
                      ['changes' => $changedValues]
                  ),
                  'text/html'
              );
          $this->getContainer()->get('mailer')->send($message);
      }
code_tokens: protected function sendNotification ( $ to , array $ changedValues ) { $ message = \ Swift_Message :: newInstance ( ) -> setSubject ( 'User details updated' ) -> setFrom ( $ this -> getContainer ( ) -> getParameter ( 'fos_user.resetting.email.from_email' ) ) -> setTo ( $ to ) -> setBody ( $ this -> getContainer ( ) -> get ( 'twig' ) -> render ( '@WebtownKunstmaanExtension/email/user_edit.html.twig' , [ 'changes' => $ changedValues ] ) , 'text/html' ) ; $ this -> getContainer ( ) -> get ( 'mailer' ) -> send ( $ message ) ; }
docstring: Send email notification about changes
  
  @param       $to
  @param array $changedValues
docstring_tokens: Send email notification about changes