| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function sendNotification($email) |
||
| 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 | 'text/html'); |
||
| 34 | $this->mailer->send($message); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |