We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 142eb68 commit 31f99feCopy full SHA for 31f99fe
service_container/definitions.rst
@@ -89,14 +89,18 @@ fetched from the container::
89
90
// gets a specific argument
91
$firstArgument = $definition->getArgument(0);
92
+
93
+ // adds a new argument with the name of the argument
94
+ // $argumentName = the name of the argument in the constructor
95
+ $argument = $definition->setArgument('$argumentName', $argumentValue);
96
97
// adds a new argument
98
$definition->addArgument($argument);
99
100
// replaces argument on a specific index (0 = first argument)
101
$definition->replaceArgument($index, $argument);
102
- // replace all previously configured arguments with the passed array
103
+ // replaces all previously configured arguments with the passed array
104
$definition->setArguments($arguments);
105
106
.. caution::
0 commit comments