function ArrayInput::addArgument
Adds an argument value.
Throws
InvalidArgumentException When argument given doesn't exist
1 call to ArrayInput::addArgument()
- ArrayInput::parse in vendor/
symfony/ console/ Input/ ArrayInput.php - Processes command line arguments.
File
-
vendor/
symfony/ console/ Input/ ArrayInput.php, line 183
Class
- ArrayInput
- ArrayInput represents an input provided as an array.
Namespace
Symfony\Component\Console\InputCode
private function addArgument(string|int $name, mixed $value) : void {
if (!$this->definition
->hasArgument($name)) {
throw new InvalidArgumentException(\sprintf('The "%s" argument does not exist.', $name));
}
$this->arguments[$name] = $value;
}