Navigation Menu

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

Factory interface + Container::make #142

mnapoli opened this issue Jan 9, 2014 · 1 comment

Factory interface + Container::make #142

mnapoli opened this issue Jan 9, 2014 · 1 comment


Copy link

mnapoli commented Jan 9, 2014

Having a Container::make() method would be really useful:

public function make($classname, array $parameters = []);

Any missing parameter from the array is resolved using the container.

This would probably go well with a FactoryInterace so that it can be used/injected, but while avoiding the service locator pattern (i.e. full access to all methods of the container, like get).

@ghost ghost assigned mnapoli Jan 11, 2014
Copy link
Member Author

mnapoli commented Jan 11, 2014

Implemented in 4.0

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

No branches or pull requests

1 participant