FactoryInterface
in
Describes the basic interface of a factory.
Tags
Table of Contents
Methods
- make() : mixed
- Resolves an entry by its name. If given a class name, it will return a new instance of that class.
Methods
make()
Resolves an entry by its name. If given a class name, it will return a new instance of that class.
public
make(string $name[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $name : string
-
Entry name or a class name.
- $parameters : array<string|int, mixed> = []
-
Optional parameters to use to build the entry. Use this to force specific parameters to specific values. Parameters not defined in this array will be automatically resolved.