-
-
Notifications
You must be signed in to change notification settings - Fork 324
Factory interface + Container::make #142
Copy link
Copy link
Closed
Description
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).
Reactions are currently unavailable