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

Make ArrayDefinition immutable #30

Closed
vjik opened this issue Dec 7, 2021 · 0 comments
Closed

Make ArrayDefinition immutable #30

vjik opened this issue Dec 7, 2021 · 0 comments
Labels
type:enhancement Enhancement
Milestone

Comments

@vjik
Copy link
Member

vjik commented Dec 7, 2021

Replace ArrayDefinition::setReferenceContainer() to ArrayDefinition::withReferenceContainer().

Cache definitions objects, so you can use them in another context where you don't need a separate container for references.

See yiisoft/factory#145 (comment)

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

No branches or pull requests

2 participants