public function DbDumpApplication::getDefinition

public DbDumpApplication::getDefinition()

Overridden so the application doesn't expect the command name as the first argument.

Overrides Application::getDefinition

File

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

Class

DbDumpApplication
Provides a command to dump a database generation script.

Namespace

Drupal\Core\Command

Code

public function getDefinition() {
  $definition = parent::getDefinition();
  // Clears the normal first argument (the command name).
  $definition->setArguments();
  return $definition;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Command!DbDumpApplication.php/function/DbDumpApplication::getDefinition/8.1.x