You are here

protected function Application::getDefaultCommands in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getDefaultCommands()

Gets the default commands that should always be available.

Return value

Command[] An array of default Command instances

4 calls to Application::getDefaultCommands()
Application::__construct in vendor/symfony/console/Application.php
Constructor.
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.
3 methods override Application::getDefaultCommands()
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 905

Class

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

Namespace

Symfony\Component\Console

Code

protected function getDefaultCommands() {
  return array(
    new HelpCommand(),
    new ListCommand(),
  );
}