public function Definition::addArgument in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php \Symfony\Component\DependencyInjection\Definition::addArgument()
Adds an argument to pass to the service constructor/factory method.
@api
Parameters
mixed $argument An argument:
Return value
Definition The current instance
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Definition.php, line 313
Class
- Definition
- Definition represents a service definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function addArgument($argument) {
$this->arguments[] = $argument;
return $this;
}