LegacyParamArgvInput deprecated
class LegacyParamArgvInput extends ArgvInput (View source)
deprecated 6.0.0 Use Symfony\Component\Console\Input\ArgvInput instead.
Represents an input coming from the CLI arguments - but converts legacy arg-style parameters to flags.
e.g. ddev dev:build flush=1
is converted to ddev dev:build --flush
.
Doesn't convert anything that isn't explicitly an InputOption in the relevant InputDefinition.
Removes the parameters from the input args (e.g. doesn't become ddev dev:build flush=1 --flush
).
Methods
No description
Binds the current Input instance with the given arguments and options.
No description
Details
__construct(array|null $argv = null, InputDefinition|null $definition = null)
No description
bool
hasParameterOption(string|array $values, bool $onlyParams = false)
No description
mixed
getParameterOption(string|array $values, string|bool|int|float|array|null $default = false, bool $onlyParams = false)
No description
void
bind(InputDefinition $definition)
Binds the current Input instance with the given arguments and options.
Also converts any arg-style params into true flags, based on the options defined.
protected void
setTokens(array $tokens)
No description
mixed
getLegacyParameterOption(string|array $values, string|bool|int|float|array|null $default = false)
No description