Method |
Description |
|
alias ( string $aliasOrClass, string $existingAliasOrClass ) |
Create alias $aliasOrClass pointing to $existingAliasOrClass. |
|
bind ( string $aliasOrClass, mixed $mixed ) |
Bind param, object, class or factoryMethod as definition for $aliasOrClass. |
|
factory ( string $aliasOrClass, callable $factoryMethod, mixed[] $args = [] ) |
Bind factory method as definition for $aliasOrClass |
|
instance ( string $aliasOrClass, object $object ) |
Bind object as definition for $aliasOrClass. |
|
param ( string $aliasOrClass, string | float | integer | null $param ) |
Bind param as definition for $aliasOrClass. |
|
remove ( string $aliasOrClass ) |
Remove custom definition for $aliasOrClass. |
|
share ( string $aliasOrClass, mixed[] $defaultParams = [] ) |
Mark object definition of class $alias as singleton and/or pass default parameters. |
|
wire ( string $aliasOrClass, mixed[] $defaultParams ) |
Wire default parameters to object definition of class $alias. |
|