/** * Edit a comment * * @param CommentInterface $comment Comment * @param string $content Content * * @return CommentInterface Edited comment */ public function editComment(CommentInterface $comment, $content) { $comment->setContent($content); $this->commentDirector->save($comment); $this->commentEventDispatcher->dispatchCommentOnEditEvent($comment); return $this; }