コード例 #1
0
 /**
  * Edit a comment.
  *
  * @param Request $request     Request
  * @param int     $commentId   Comment id
  * @param string  $authorToken Author Token
  *
  * @return Response
  *
  * @throws EntityNotFoundException Comment not found
  */
 public function editCommentAction(Request $request, $commentId, $authorToken)
 {
     $requestBag = $request->request;
     $content = $requestBag->get('content');
     $comment = $this->findComment($commentId, $authorToken);
     $this->commentManager->editComment($comment, $content);
     return new Response();
 }