Skip to content

Commit

Permalink
Merge pull request flownative#63 from alexgaertner/fix/publish-s3-res…
Browse files Browse the repository at this point in the history
…ources

Fix source bucket when publishing on two-bucket setup
  • Loading branch information
robertlemke authored Apr 3, 2023
2 parents e00ab09 + 1ebb1fb commit c1e3008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/S3Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class S3Target implements TargetInterface
/**
* @var array
*/
protected $existingObjectsInfo = [];
protected $existingObjectsInfo;

/**
* @var bool
Expand Down Expand Up @@ -319,7 +319,7 @@ private function publishCollectionFromS3Storage(CollectionInterface $collection,
} else {
$this->copyObject(
function (StorageObject $object) use ($storage): string {
return $this->bucketName . '/' . $storage->getKeyPrefix() . $object->getSha1();
return $storage->getBucketName() . '/' . $storage->getKeyPrefix() . $object->getSha1();
},
function (StorageObject $object) use ($storage): string {
return $storage->getKeyPrefix() . $this->getRelativePublicationPathAndFilename($object);
Expand Down

0 comments on commit c1e3008

Please sign in to comment.