Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Add repositories (packages.json) management using S3#5

Merged
naderman merged 6 commits intonaderman:masterfrom
JJK801:enalble-s3-for-repositories
Dec 16, 2013
Merged

Add repositories (packages.json) management using S3#5
naderman merged 6 commits intonaderman:masterfrom
JJK801:enalble-s3-for-repositories

Conversation

@JJK801
Copy link
Contributor

@JJK801 JJK801 commented Nov 19, 2013

Hi,

This sample of code implements possibility of fetch repositories packages.json using s3:// scheme.

Need to wait composer/composer#2434 to be merged.

Thanks,

Jérémy

@JJK801
Copy link
Contributor Author

JJK801 commented Nov 22, 2013

composer's PR has been merged, if you're ok, you can merge this one

@omansour
Copy link

👍

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 8, 2013

ping @naderman

Please, we really need this feature :)

Thanks

@naderman
Copy link
Owner

So since the composer PR was reverted this won't work. Are you working on a new composer PR?

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 16, 2013

It was remerged by Seldaek just after with his own fix on VcsRepository.

@naderman
Copy link
Owner

Oh I saw your fix being closed and didn't have a chance to ask him yet :D

@naderman
Copy link
Owner

Alright this generally looks good then, but I'd prefer if you could merge the getContents and download methods now since the code is mostly duplicated. Could you do that? Cheers!

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 16, 2013

no problem

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 16, 2013

Is it what you expected @naderman ?

@naderman
Copy link
Owner

Yes, but there is a problem now. It still has to use the guzzle mechanism with fopen for writing because that streams the content. But the way you wrote it with file_put_contents now it loads the entire file into RAM which can be an issue with big downloads.

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 16, 2013

You're right, must be much better now

@naderman
Copy link
Owner

Ok cool, this looks good. Thanks for the patience and good work :)

naderman added a commit that referenced this pull request Dec 16, 2013
Add repositories (packages.json) management using S3
@naderman naderman merged commit 77373cd into naderman:master Dec 16, 2013
@naderman
Copy link
Owner

Also tagged a new version 0.2.4

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 16, 2013

Thanks!

@JJK801 JJK801 deleted the enalble-s3-for-repositories branch December 16, 2013 16:32
@omansour
Copy link

Excellent :)

Thanks to you both

Le 16 déc. 2013 à 17:25, Nils Adermann notifications@github.com a écrit :

Also tagged a new version 0.2.4


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants