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