Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Application.php

function Application::getDefaultInputDefinition

Same name in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/Console/Application.php \Composer\Console\Application::getDefaultInputDefinition()

Gets the default input definition.

3 calls to Application::getDefaultInputDefinition()
Application::getDefaultInputDefinition in vendor/composer/composer/src/Composer/Console/Application.php
Gets the default input definition.
Application::getDefaultInputDefinition in vendor/composer/composer/src/Composer/Console/Application.php
Gets the default input definition.
Application::getDefinition in vendor/symfony/console/Application.php
Gets the InputDefinition related to this Application.
1 method overrides Application::getDefaultInputDefinition()
Application::getDefaultInputDefinition in vendor/composer/composer/src/Composer/Console/Application.php
Gets the default input definition.

File

vendor/symfony/console/Application.php, line 1129

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

protected function getDefaultInputDefinition() : InputDefinition {
    return new InputDefinition([
        new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
        new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display help for the given command. When no command is given display help for the <info>' . $this->defaultCommand . '</info> command'),
        new InputOption('--silent', null, InputOption::VALUE_NONE, 'Do not output any message'),
        new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Only errors are displayed. All other output is suppressed'),
        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_NEGATABLE, 'Force (or disable --no-ansi) ANSI output', null),
        new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal