/** * Send a request to retrieve the next page of results. * * @return void */ protected function sendRequest() { // Issue a listBucket request and prevent $command = new ListBucket(); $command->setBucket($this->data['bucket'])->setPrefix($this->data['prefix'])->setMarker($this->nextToken)->setLimit($this->limit)->setMaxKeys($this->calculatePageSize())->setDelimiter($this->data['delimiter'])->setXmlResponseOnly(true)->setClient($this->client); $command->execute(); $this->processListBucket($command->getResult()); // var_export($this->data); if (!$this->data['resources']) { // @codeCoverageIgnoreStart throw new S3Exception('Expected response for subsequent list bucket command'); // @codeCoverageIgnoreEnd } else { $this->resourceList = $this->data['resources']; $this->nextToken = $this->data['next_token']; $this->retrievedCount += count($this->data['resources']); $this->currentIndex = 0; } }