Controller/CommentController.php 1 location
|
@@ 114-120 (lines=7) @@
|
| 111 |
|
return $this->handleView($this->view(null, 204)); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function deleteAction(int $id): Response |
| 115 |
|
{ |
| 116 |
|
$this->get('sulu_comment.manager')->delete([$id]); |
| 117 |
|
$this->get('doctrine.orm.entity_manager')->flush(); |
| 118 |
|
|
| 119 |
|
return $this->handleView($this->view(null, 204)); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* trigger a action for given comment specified over action get-parameter |
Controller/ThreadController.php 1 location
|
@@ 104-110 (lines=7) @@
|
| 101 |
|
return $this->handleView($this->view(null, 204)); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public function deleteAction(int $id): Response |
| 105 |
|
{ |
| 106 |
|
$this->get('sulu_comment.manager')->deleteThreads([$id]); |
| 107 |
|
$this->get('doctrine.orm.entity_manager')->flush(); |
| 108 |
|
|
| 109 |
|
return $this->handleView($this->view(null, 204)); |
| 110 |
|
} |
| 111 |
|
} |
| 112 |
|
|