protected function Application::getDefaultInputDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getDefaultInputDefinition()
Gets the default input definition.
Return value
InputDefinition An InputDefinition instance
1 call to Application::getDefaultInputDefinition()
- Application::__construct in vendor/
symfony/ console/ Application.php - Constructor.
1 method overrides Application::getDefaultInputDefinition()
- CustomApplication::getDefaultInputDefinition in vendor/
symfony/ console/ Tests/ ApplicationTest.php - Overwrites the default input definition.
File
- vendor/
symfony/ console/ Application.php, line 885
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
protected function getDefaultInputDefinition() {
return new InputDefinition(array(
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message'),
new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'),
new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'),
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
new InputOption('--ansi', '', InputOption::VALUE_NONE, 'Force ANSI output'),
new InputOption('--no-ansi', '', InputOption::VALUE_NONE, 'Disable ANSI output'),
new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
));
}