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 ability to pass additional setters to Forge::newInstance(), Container::newInstance() and Container::lazyNew() #7

Closed
kenaniah opened this issue Apr 20, 2012 · 1 comment

Comments

@kenaniah
Copy link
Contributor

The factory should accept an additional argument that would allow for additional setters to be passed to an object after construction.

The api should look something like Forge::newInstance($class, array $params = [], array $setters = []). The setters then applied to the $class instance after construction should be the combination of the setters found in the Config object along with the setters defined in the $setters parameter.

This was referenced Apr 21, 2012
@pmjones
Copy link
Member

pmjones commented Apr 30, 2012

Merged pull request; closing the ticket. Thanks!

@pmjones pmjones closed this as completed Apr 30, 2012
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

2 participants