| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function deleteTrickImage(Image $image) |
||
| 36 | { |
||
| 37 | $trick = $image->getTrick(); |
||
| 38 | $event = new ImageDeleteEvent($image, $image->getTrick()); |
||
|
|
|||
| 39 | $this->dispatcher->dispatch(ImageDeleteEvent::NAME, $event); |
||
| 40 | |||
| 41 | return $this->redirectToRoute('trick.edit', [ |
||
| 42 | 'id' => $trick->getId(), |
||
| 43 | ]); |
||
| 45 | } |