DefinitionDecorator::replaceArgument()

Definition replaceArgument(int $index, mixed $value)

You should always use this method when overwriting existing arguments of the parent definition.

If you directly call setArguments() keep in mind that you must follow certain conventions when you want to overwrite the arguments of the parent definition, otherwise your arguments will only be appended.

Parameters

int $index
mixed $value

Return Value

Definition The current instance

Exceptions

InvalidArgumentException when $index isn't an integer
doc_Symfony
2016-10-28 06:13:56
Comments
Leave a Comment

Please login to continue.