3 namespace Drupal\Core\Command;
5 use Symfony\Component\Console\Application;
6 use Symfony\Component\Console\Input\InputInterface;
9 * Provides a command to dump a database generation script.
11 class DbDumpApplication extends Application {
16 protected function getCommandName(InputInterface $input) {
17 return 'dump-database-d8-mysql';
23 protected function getDefaultCommands() {
24 // Even though this is a single command, keep the HelpCommand (--help).
25 $default_commands = parent::getDefaultCommands();
26 $default_commands[] = new DbDumpCommand();
27 return $default_commands;
33 * Overridden so the application doesn't expect the command name as the first
36 public function getDefinition() {
37 $definition = parent::getDefinition();
38 // Clears the normal first argument (the command name).
39 $definition->setArguments();