Skip to content

Add Resource::open() method to make URL creation simpler - #20

Merged
thekid merged 2 commits into
mainfrom
feature/open-resource
Oct 14, 2024
Merged

Add Resource::open() method to make URL creation simpler#20
thekid merged 2 commits into
mainfrom
feature/open-resource

Conversation

@thekid

@thekid thekid commented Oct 14, 2024

Copy link
Copy Markdown
Member

Example:

-  $transfer= $s3->open('PUT', 'target/'.rawurlencode($file->filename), $headers);
+  $transfer= $s3->resource('target/{0}', [$file->filename])->open('PUT', $headers);

@thekid thekid added the enhancement New feature or request label Oct 14, 2024
@thekid
thekid merged commit 42b8825 into main Oct 14, 2024
@thekid
thekid deleted the feature/open-resource branch October 14, 2024 17:41
thekid added a commit that referenced this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant