class DbToolsApplication in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication
- 10 core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication
Provides a command to import a database generation script.
Hierarchy
- class \Drupal\Core\Command\DbToolsApplication extends \Symfony\Component\Console\Application
Expanded class hierarchy of DbToolsApplication
2 files declare their use of DbToolsApplication
- db-tools.php in core/
scripts/ db-tools.php - A command line application to import a database generation script.
- DbToolsApplicationTest.php in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbToolsApplicationTest.php
File
- core/
lib/ Drupal/ Core/ Command/ DbToolsApplication.php, line 10
Namespace
Drupal\Core\CommandView source
class DbToolsApplication extends Application {
/**
* {@inheritdoc}
*/
public function __construct() {
parent::__construct('Database Tools', \Drupal::VERSION);
}
/**
* {@inheritdoc}
*/
protected function getDefaultCommands() {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new DbDumpCommand();
$default_commands[] = new DbImportCommand();
return $default_commands;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DbToolsApplication:: |
protected | function | ||
DbToolsApplication:: |
public | function |