diff --git a/Classes/S3Target.php b/Classes/S3Target.php index 17608bb..7b781c6 100644 --- a/Classes/S3Target.php +++ b/Classes/S3Target.php @@ -277,7 +277,7 @@ public function publishCollection(CollectionInterface $collection, callable $cal if ($storage instanceof S3Storage) { $this->publishCollectionFromS3Storage($collection, $storage, $potentiallyObsoleteObjects, $callback); } else { - foreach ($collection->getObjects() as $object) { + foreach ($collection->getObjects($callback) as $object) { /** @var StorageObject $object */ $this->publishFile($object->getStream(), $this->getRelativePublicationPathAndFilename($object), $object); $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($object);