Mailer/Mailer.php
public function sendUpdateEmailMessage(Task $task, UserInterface $byUser, array $involvedUsers, array $changes, TypeInterface $type)
    {
        $template = $this->parameters['update']['template'];
        $from = $this->parameters['update']['from_email'];

        $text = $type->getText($task);
        $url = $type->getLink($task);

        $content = $this->templating->render(
            $template,
            [
                'byUser' => $byUser,
                'involvedUsers' => $involvedUsers,
                'changes' => $changes,
                'text' => $text,
                'url' => $url,
            ]
        );

        foreach ($involvedUsers as $involvedUser) {
            $this->sendEmailMessage($content, $from, $involvedUser->getEmail());
        }
    }
public function sendUpdateEmailMessage(Task $task, UserInterface $byUser, array $involvedUsers, array $changes, TypeInterface $type)
    {
        $template = $this->parameters['update']['template'];
        $from = $this->parameters['update']['from_email'];

        $text = $type->getText($task);
        $url = $type->getLink($task);

        $content = $this->templating->render(
            $template,
            [
                'byUser' => $byUser,
                'involvedUsers' => $involvedUsers,
                'changes' => $changes,
                'text' => $text,
                'url' => $url,
            ]
        );

        foreach ($involvedUsers as $involvedUser) {
            $this->sendEmailMessage($content, $from, $involvedUser->getEmail());
        }
    }
public function sendUpdateEmailMessage ( Task $ task , UserInterface $ byUser , array $ involvedUsers , array $ changes , TypeInterface $ type ) { $ template = $ this -> parameters [ 'update' ] [ 'template' ] ; $ from = $ this -> parameters [ 'update' ] [ 'from_email' ] ; $ text = $ type -> getText ( $ task ) ; $ url = $ type -> getLink ( $ task ) ; $ content = $ this -> templating -> render ( $ template , [ 'byUser' => $ byUser , 'involvedUsers' => $ involvedUsers , 'changes' => $ changes , 'text' => $ text , 'url' => $ url , ] ) ; foreach ( $ involvedUsers as $ involvedUser ) { $ this -> sendEmailMessage ( $ content , $ from , $ involvedUser -> getEmail ( ) ) ; } }
Send an update email.

@param Task            $task
@param UserInterface   $byUser
@param UserInterface[] $involvedUsers
@param array           $changes
@param TypeInterface   $type
Send an update email .