Метод | Описание | |
---|---|---|
__construct ( string | null $className = null ) | Helper for defining an object. | |
constructor ( ) : |
Defines the arguments to use to call the constructor. | |
constructorParameter ( string $parameter, mixed $value ) : |
Defines a value for a specific argument of the constructor. | |
getDefinition ( $entryName ) | ||
lazy ( ) : |
Define the entry as lazy. | |
method ( string $method ) : |
Defines a method to call and the arguments to use. | |
methodParameter ( string $method, string $parameter, mixed $value ) : |
Defines a method to call and a value for a specific argument. | |
property ( string $property, mixed $value ) : |
Defines a value to inject in a property of the object. | |
scope ( string $scope ) : |
Defines the scope of the entry. |
Метод | Описание | |
---|---|---|
fixParameters ( |
Fixes parameters indexed by the parameter name -> reindex by position. |
public __construct ( string | null $className = null ) | ||
$className | string | null | Class name of the object. If null, the name of the entry (in the container) will be used as class name. |
public constructor ( ) : |
||
Результат |
public constructorParameter ( string $parameter, mixed $value ) : |
||
$parameter | string | Parameter for which the value will be given. |
$value | mixed | Value to give to this parameter. |
Результат |
public lazy ( ) : |
||
Результат |
public methodParameter ( string $method, string $parameter, mixed $value ) : |
||
$method | string | Name of the method to call. |
$parameter | string | Name or index of the parameter for which the value will be given. |
$value | mixed | Value to give to this parameter. |
Результат |