DbDumpApplication.php in Drupal 10
File
core/lib/Drupal/Core/Command/DbDumpApplication.php
View source
<?php
namespace Drupal\Core\Command;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
class DbDumpApplication extends Application {
protected function getCommandName(InputInterface $input) : ?string {
return 'dump-database-d8-mysql';
}
protected function getDefaultCommands() : array {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new DbDumpCommand();
return $default_commands;
}
public function getDefinition() : InputDefinition {
$definition = parent::getDefinition();
$definition
->setArguments();
return $definition;
}
}