Skip to content

Factory interface + Container::make #142

@mnapoli

Description

@mnapoli

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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions