public function commentEditAction(Comment $comment, Request $request)
    {
        $this->clacoFormManager->checkCommentEditionRight($comment);

        $decodedRequest = $this->decodeRequest($request);
        $comment = $this->clacoFormManager->editComment($comment, $decodedRequest['message']);

        return new JsonResponse($this->commentSerializer->serialize($comment), 200);
    }
public function commentEditAction(Comment $comment, Request $request)
    {
        $this->clacoFormManager->checkCommentEditionRight($comment);

        $decodedRequest = $this->decodeRequest($request);
        $comment = $this->clacoFormManager->editComment($comment, $decodedRequest['message']);

        return new JsonResponse($this->commentSerializer->serialize($comment), 200);
    }
public function commentEditAction ( Comment $ comment , Request $ request ) { $ this -> clacoFormManager -> checkCommentEditionRight ( $ comment ) ; $ decodedRequest = $ this -> decodeRequest ( $ request ) ; $ comment = $ this -> clacoFormManager -> editComment ( $ comment , $ decodedRequest [ 'message' ] ) ; return new JsonResponse ( $ this -> commentSerializer -> serialize ( $ comment ) , 200 ) ; }
Edits a comment.

@EXT\Route(
"/claco/form/entry/comment/{comment}/edit",
name="claro_claco_form_entry_comment_edit",
options = {"expose"=true}
)
@EXT\ParamConverter(
"comment",
class="ClarolineClacoFormBundle:Comment",
options={"mapping": {"comment": "uuid"}}
)
@EXT\ParamConverter("user", converter="current_user")

@param Comment $comment
@param Request $request

@return JsonResponse
Edits a comment .