W3cubDocs

/Symfony 4.1

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