| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function load(ObjectManager $manager) |
||
| 21 | { |
||
| 22 | $emails = [ |
||
| 23 | 'activate_email' => [ |
||
| 24 | 'subject'=>'Activate Email', |
||
| 25 | 'content'=>'click here <a href="{{ link }}">{{ link }}</a>', |
||
| 26 | ], |
||
| 27 | ]; |
||
| 28 | |||
| 29 | foreach ($emails as $alias => $emailData) { |
||
| 30 | $email = new MailTemplate(); |
||
| 31 | $email->setAlias($alias); |
||
| 32 | $email->setSubject($emailData['subject']); |
||
| 33 | $email->setContent($emailData['content']); |
||
| 34 | $manager->persist($email); |
||
| 35 | } |
||
| 36 | |||
| 37 | $manager->flush(); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |