Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function sendNotification($email, $title = 'Hello!', $content = ' ') |
||
26 | { |
||
27 | $message = new \Swift_Message(); |
||
28 | $message |
||
29 | ->setSubject('Hello Email') |
||
30 | ->setFrom($this->from) |
||
31 | ->setTo($email) |
||
32 | ->setBody($this->twig->render('AppBundle:Email:email.html.twig', [ |
||
33 | 'title' => $title, 'content' => $content, ]), 'text/html'); |
||
34 | $this->mailer->send($message); |
||
35 | } |
||
36 | } |
||
37 |