DbDumpApplication::getDefaultCommands

protected DbDumpApplication::getDefaultCommands()

Gets the default commands that should always be available.

Return value

Command[] An array of default Command instances

Overrides Application::getDefaultCommands

File

core/lib/Drupal/Core/Command/DbDumpApplication.php, line 23

Class

DbDumpApplication
Provides a command to dump a database generation script.

Namespace

Drupal\Core\Command

Code

protected function getDefaultCommands() {
  // Even though this is a single command, keep the HelpCommand (--help).
  $default_commands = parent::getDefaultCommands();
  $default_commands[] = new DbDumpCommand();
  return $default_commands;
}
doc_Drupal
2016-10-29 09:01:07
Comments
Leave a Comment

Please login to continue.