You are here

private function ListCommand::createDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Command/ListCommand.php \Symfony\Component\Console\Command\ListCommand::createDefinition()
1 call to ListCommand::createDefinition()
ListCommand::getNativeDefinition in vendor/symfony/console/Command/ListCommand.php
Gets the InputDefinition to be used to create XML and Text representations of this Command.

File

vendor/symfony/console/Command/ListCommand.php, line 88

Class

ListCommand
ListCommand displays the list of all available commands for the application.

Namespace

Symfony\Component\Console\Command

Code

private function createDefinition() {
  return new InputDefinition(array(
    new InputArgument('namespace', InputArgument::OPTIONAL, 'The namespace name'),
    new InputOption('xml', null, InputOption::VALUE_NONE, 'To output list as XML'),
    new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw command list'),
    new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
  ));
}