public function ArgvInput::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Input/ArgvInput.php \Symfony\Component\Console\Input\ArgvInput::__construct()
Constructor.
Parameters
array $argv An array of parameters from the CLI (in the argv format):
InputDefinition $definition A InputDefinition instance:
Overrides Input::__construct
1 call to ArgvInput::__construct()
- StringInput::__construct in vendor/
symfony/ console/ Input/ StringInput.php - Constructor.
1 method overrides ArgvInput::__construct()
- StringInput::__construct in vendor/
symfony/ console/ Input/ StringInput.php - Constructor.
File
- vendor/
symfony/ console/ Input/ ArgvInput.php, line 50
Class
- ArgvInput
- ArgvInput represents an input coming from the CLI arguments.
Namespace
Symfony\Component\Console\InputCode
public function __construct(array $argv = null, InputDefinition $definition = null) {
if (null === $argv) {
$argv = $_SERVER['argv'];
}
// strip the application name
array_shift($argv);
$this->tokens = $argv;
parent::__construct($definition);
}