| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function send(Request $request): Response |
||
| 38 | { |
||
| 39 | $data = json_decode($request->getContent(), true); |
||
| 40 | |||
| 41 | $this->mailer->send( |
||
| 42 | $data['subject'], |
||
| 43 | $data['message'], |
||
| 44 | $data['email'], |
||
| 45 | null |
||
| 46 | |||
| 47 | ); |
||
| 48 | |||
| 49 | return $this->getResponse( |
||
| 50 | $this->translator->trans('email.success') |
||
| 51 | ); |
||
| 69 |