trait ArgumentTrait
$this | args(array $arguments) Sets the arguments to pass to the service constructor/factory method. | |
$this | arg(string|int $key, mixed $value) Sets one argument to pass to the service constructor/factory method. |
Sets the arguments to pass to the service constructor/factory method.
array | $arguments | An array of arguments |
$this |
Sets one argument to pass to the service constructor/factory method.
string|int | $key | |
mixed | $value |
$this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/ArgumentTrait.html