function DbCommandBase::configure
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
Return value
void
3 calls to DbCommandBase::configure()
- DbCommandBaseTester::configure in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 - DbDumpCommand::configure in core/
lib/ Drupal/ Core/ Command/ DbDumpCommand.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 - DbImportCommand::configure in core/
lib/ Drupal/ Core/ Command/ DbImportCommand.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 
3 methods override DbCommandBase::configure()
- DbCommandBaseTester::configure in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbCommandBaseTest.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 - DbDumpCommand::configure in core/
lib/ Drupal/ Core/ Command/ DbDumpCommand.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 - DbImportCommand::configure in core/
lib/ Drupal/ Core/ Command/ DbImportCommand.php  - phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
 
File
- 
              core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php, line 21  
Class
- DbCommandBase
 - Base command that abstracts handling of database connection arguments.
 
Namespace
Drupal\Core\CommandCode
protected function configure() {
  $this->addOption('database', NULL, InputOption::VALUE_OPTIONAL, 'The database connection name to use.', 'default')
    ->addOption('database-url', 'db-url', InputOption::VALUE_OPTIONAL, 'A database url to parse and use as the database connection.')
    ->addOption('prefix', NULL, InputOption::VALUE_OPTIONAL, 'Override or set the table prefix used in the database connection.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.