Controller/CommentController.php 1 location
|
@@ 74-82 (lines=9) @@
|
| 71 |
|
return $this->handleView($this->view($list, 200)); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
public function getAction(int $id): Response |
| 75 |
|
{ |
| 76 |
|
$comment = $this->get('sulu.repository.comment')->findCommentById($id); |
| 77 |
|
if (!$comment) { |
| 78 |
|
throw new EntityNotFoundException(CommentInterface::class, $id); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
return $this->handleView($this->view($comment)); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function putAction(int $id, Request $request): Response |
| 85 |
|
{ |
Controller/ThreadController.php 1 location
|
@@ 64-72 (lines=9) @@
|
| 61 |
|
return $this->handleView($this->view($list, 200)); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function getAction(int $id): Response |
| 65 |
|
{ |
| 66 |
|
$thread = $this->get('sulu.repository.thread')->findThreadById($id); |
| 67 |
|
if (!$thread) { |
| 68 |
|
throw new EntityNotFoundException(ThreadInterface::class, $id); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return $this->handleView($this->view($thread)); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
public function putAction(int $id, Request $request): Response |
| 75 |
|
{ |