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

Resouce Itterators #36

Closed
GrahamCampbell opened this issue Jul 26, 2014 · 6 comments
Closed

Resouce Itterators #36

GrahamCampbell opened this issue Jul 26, 2014 · 6 comments

Comments

@GrahamCampbell
Copy link
Member

When will these be returning to guzzle 4? Could you suggest an alternative that would work with guzzle 4?

@mtdowling
Copy link
Member

I don't really think the feature makes that much sense now that PHP has generators, which is why I left it out. I didn't really like how it was implemented either, so I'm not sure what the best design for it would be if it were brought back in some way.

On Jul 26, 2014, at 5:43 PM, Graham Campbell notifications@github.com wrote:

When will these be returning to guzzle 4? Could you suggest an alternative that would work with guzzle 4?


Reply to this email directly or view it on GitHub.

@GrahamCampbell
Copy link
Member Author

Generators aren't an option for me since I need to support users on php 5.4. How will the new aws sdk be handling this?

@mtdowling
Copy link
Member

We will be using a very specific data driven iterator approach for AWS. We've found that implementing a specific iterator class for AWS rather than trying to fit iterator logic into an abstracted iterator class (ala Guzzle 3) has yielded far simpler code. We are going to release code later this year once we have more of the release strategy worked out and get Guzzle commands stable.

@GrahamCampbell
Copy link
Member Author

Cool. Thanks.

@Spea
Copy link

Spea commented Sep 23, 2014

Are there any news about this? Would really appreciate it, if you could share some information about the iterators for AWS.

@mtdowling
Copy link
Member

The AWS SDK iterators can be found here: https://github.com/aws/aws-sdk-php/tree/v3/src/Common/Paginator. Iterating over resources is going to be vey application specific. If there is a way to describe this in a general-purpose way that works for multiple services, then I would suggest that it should part of a separate package that uses a client rather than be part of the client itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants