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

Lists: Support for IteratorAggregate objects #467

Closed
g105b opened this issue Oct 14, 2023 · 0 comments
Closed

Lists: Support for IteratorAggregate objects #467

g105b opened this issue Oct 14, 2023 · 0 comments
Assignees
Labels

Comments

@g105b
Copy link
Member

g105b commented Oct 14, 2023

IteratorAggregate is amazing! I'm amazed that I haven't ever used it before today.

It allows a class to supply its own Iterator in the getIterator():iterable function. This means a readonly class can supply a new ArrayIterator($this->myArrayList) , which is super useful in the context of binding lists in DomTemplate.

@g105b g105b added the feature label Oct 14, 2023
@g105b g105b self-assigned this Oct 14, 2023
g105b added a commit that referenced this issue Oct 14, 2023
g105b added a commit that referenced this issue Nov 10, 2023
@g105b g105b closed this as completed in 913b654 Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant