You are here

protected function DbCommandBase::configure in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Command/DbCommandBase.php \Drupal\Core\Command\DbCommandBase::configure()

Configures the current command.

Overrides Command::configure

3 calls to DbCommandBase::configure()
DbCommandBaseTester::configure in core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
Configures the current command.
DbDumpCommand::configure in core/lib/Drupal/Core/Command/DbDumpCommand.php
Configures the current command.
DbImportCommand::configure in core/lib/Drupal/Core/Command/DbImportCommand.php
Configures the current command.
3 methods override DbCommandBase::configure()
DbCommandBaseTester::configure in core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
Configures the current command.
DbDumpCommand::configure in core/lib/Drupal/Core/Command/DbDumpCommand.php
Configures the current command.
DbImportCommand::configure in core/lib/Drupal/Core/Command/DbImportCommand.php
Configures the current command.

File

core/lib/Drupal/Core/Command/DbCommandBase.php, line 23
Contains \Drupal\Core\Command\DbCommandBase.

Class

DbCommandBase
Base command that abstracts handling of database connection arguments.

Namespace

Drupal\Core\Command

Code

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.');
}