getUser($request), $fileRef)) { throw new AuthorizationFailedException(); } $resources = \FeedbackElement::findBySQL('range_id = ? AND range_type = ?', [$fileRef->id, \FileRef::class]); list($offset, $limit) = $this->getOffsetAndLimit(); return $this->getPaginatedContentResponse( array_slice($resources, $offset, $limit), count($resources) ); } }