コード例 #1
0
 /**
  * Delete a comment.
  *
  * @param int    $commentId   Comment id
  * @param string $authorToken Author token
  *
  * @return Response
  *
  * @throws EntityNotFoundException Comment not found
  */
 public function deleteCommentAction($commentId, $authorToken)
 {
     $comment = $this->findComment($commentId, $authorToken);
     $this->commentManager->removeComment($comment);
     return new Response();
 }