/** * {@inheritDoc} */ public function addVote(VoteInterface $vote, VotableCommentInterface $comment) { if (!$this->voteAcl->canCreate()) { throw new AccessDeniedException(); } if (!$this->commentAcl->canView($comment)) { throw new AccessDeniedException(); } $this->realManager->addVote($vote, $comment); }