getUser($request), $news)) { throw new AuthorizationFailedException(); } list($offset, $limit) = $this->getOffsetAndLimit(); return $this->getPaginatedContentResponse( $news->comments->limit($offset, $limit), count($news->comments) ); } }