This method behave like get() except it forces the scope to "prototype",
which means the definition of the entry will be re-evaluated each time.
For example, if the entry is a class, then a new instance will be created each time.
This method makes the container behave like a factory.
public make ( string $name, array $parameters = [] ) : mixed | ||
$name | string | Entry name or a class name. |
$parameters | array | 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 resolved using the container. |
Результат | mixed |