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

Breadcrumb

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

function Application::getDefaultCommands

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

Gets the default commands that should always be available.

Return value

Command[]

9 calls to Application::getDefaultCommands()
Application::getDefaultCommands in vendor/composer/composer/src/Composer/Console/Application.php
Initializes all the composer commands.
Application::getDefaultCommands in vendor/composer/composer/src/Composer/Console/Application.php
Initializes all the composer commands.
Application::init in vendor/symfony/console/Application.php
DbDumpApplication::getDefaultCommands in core/lib/Drupal/Core/Command/DbDumpApplication.php
Gets the default commands that should always be available.
DbDumpApplication::getDefaultCommands in core/lib/Drupal/Core/Command/DbDumpApplication.php
Gets the default commands that should always be available.

... See full list

4 methods override Application::getDefaultCommands()
Application::getDefaultCommands in vendor/composer/composer/src/Composer/Console/Application.php
Initializes all the composer commands.
DbDumpApplication::getDefaultCommands in core/lib/Drupal/Core/Command/DbDumpApplication.php
Gets the default commands that should always be available.
DbToolsApplication::getDefaultCommands in core/lib/Drupal/Core/Command/DbToolsApplication.php
Gets the default commands that should always be available.
GenerateProxyClassApplication::getDefaultCommands in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Gets the default commands that should always be available.

File

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

Class

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

Namespace

Symfony\Component\Console

Code

protected function getDefaultCommands() : array {
    return [
        new HelpCommand(),
        new ListCommand(),
        new CompleteCommand(),
        new DumpCompletionCommand(),
    ];
}

API Navigation

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