Skip to content

Commit

Permalink
Merge pull request #53 from flownative/task/add-forgtten-callback
Browse files Browse the repository at this point in the history
Pass forgotten callback variable
  • Loading branch information
kdambekalns authored Feb 3, 2022
2 parents 994c9cb + d3520a3 commit 28ab781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/S3Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28ab781

Please sign in to comment.