$definition
$definition :
ArrayInput represents an input provided as an array.
Usage:
$input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar'));
__construct(array $parameters, \Symfony\Component\Console\Input\InputDefinition $definition = null)
array | $parameters | |
\Symfony\Component\Console\Input\InputDefinition | $definition |
bind(\Symfony\Component\Console\Input\InputDefinition $definition)
Binds the current Input instance with the given arguments and options.
\Symfony\Component\Console\Input\InputDefinition | $definition |
addLongOption(string $name, mixed $value)
Adds a long option value.
string | $name | The long option key |
mixed | $value | The value for the option |
When option given doesn't exist
When a required value is missing