Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function sendNotification($email, $title = 'Hello!', $content = ' ') |
||
26 | { |
||
27 | $message = \Swift_Message::newInstance(); |
||
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, |
||
34 | 'content' => $content |
||
35 | ]), |
||
36 | 'text/html'); |
||
37 | $this->mailer->send($message); |
||
38 | } |
||
39 | } |
||
40 |