Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

thekid
Copy link
Member

@thekid thekid commented Oct 14, 2024

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
20 checks passed
@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