ArgumentTrait
trait ArgumentTrait
Methods
| $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. |
Details
final $this args(array $arguments)
Sets the arguments to pass to the service constructor/factory method.
Parameters
| array | $arguments | An array of arguments |
Return Value
| $this |
final $this arg(string|int $key, mixed $value)
Sets one argument to pass to the service constructor/factory method.
Parameters
| string|int | $key | |
| mixed | $value |
Return 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