/** * {@inheritDoc} **/ public function findCommentById($id) { $comment = $this->realManager->findCommentById($id); if (null !== $comment && !$this->commentAcl->canView($comment)) { throw new AccessDeniedException(); } return $comment; }