Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class DeleteImageController extends AbstractController |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var EventDispatcherInterface |
||
22 | */ |
||
23 | private $dispatcher; |
||
24 | |||
25 | public function __construct(EventDispatcherInterface $dispatcher) |
||
26 | { |
||
27 | $this->dispatcher = $dispatcher; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @Route("/image/delete/{id}", name="image.deleteFromTrick", methods={"POST"}) |
||
32 | * @param Image $image |
||
33 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
||
34 | */ |
||
35 | public function deleteTrickImage(Image $image) |
||
43 | ]); |
||
44 | } |
||
45 | } |