Gets an argument to pass to the service constructor/factory method.
@api
integer $index:
mixed The argument value
OutOfBoundsException When the argument does not exist
public function getArgument($index) {
if ($index < 0 || $index > count($this->arguments) - 1) {
throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
}
return $this->arguments[$index];
}