public function unpublishCommentAction(Request $request, Blog $blog, Comment $comment, User $user)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);
        $comment = $this->commentManager->unpublishComment($blog, $comment);

        return new JsonResponse($this->commentSerializer->serialize($comment));
    }
public function unpublishCommentAction(Request $request, Blog $blog, Comment $comment, User $user)
    {
        $this->checkPermission('EDIT', $blog->getResourceNode(), [], true);
        $comment = $this->commentManager->unpublishComment($blog, $comment);

        return new JsonResponse($this->commentSerializer->serialize($comment));
    }
public function unpublishCommentAction ( Request $ request , Blog $ blog , Comment $ comment , User $ user ) { $ this -> checkPermission ( 'EDIT' , $ blog -> getResourceNode ( ) , [ ] , true ) ; $ comment = $ this -> commentManager -> unpublishComment ( $ blog , $ comment ) ; return new JsonResponse ( $ this -> commentSerializer -> serialize ( $ comment ) ) ; }
Unpublish post comment.

@EXT\Route("/{commentId}/unpublish", name="apiv2_blog_comment_unpublish")
@EXT\Method("PUT")
@EXT\ParamConverter("comment", class="IcapBlogBundle:Comment", options={"mapping": {"commentId": "uuid"}})
@EXT\ParamConverter("user", converter="current_user", options={"allowAnonymous"=false})

@param Blog    $blog
@param Comment $comment
@param User    $user

@return array
Unpublish post comment .