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