class DbToolsApplication
Provides a command to import a database generation script.
Hierarchy
- class \Symfony\Component\Console\Application implements \Symfony\Contracts\Service\ResetInterface
- class \Drupal\Core\Command\DbToolsApplication extends \Symfony\Component\Console\Application
Expanded class hierarchy of DbToolsApplication
1 file declares its use of DbToolsApplication
- db-tools.php in core/
scripts/ db-tools.php - A command line application to import a database generation script.
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() : array {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new DbDumpCommand();
$default_commands[] = new DbImportCommand();
return $default_commands;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
Application::$alarmInterval | private | property | |||
Application::$autoExit | private | property | |||
Application::$catchErrors | private | property | |||
Application::$catchExceptions | private | property | |||
Application::$commandLoader | private | property | |||
Application::$commands | private | property | |||
Application::$defaultCommand | private | property | |||
Application::$definition | private | property | |||
Application::$dispatcher | private | property | |||
Application::$helperSet | private | property | |||
Application::$initialized | private | property | |||
Application::$runningCommand | private | property | |||
Application::$signalRegistry | private | property | |||
Application::$signalsToDispatchEvent | private | property | |||
Application::$singleCommand | private | property | |||
Application::$terminal | private | property | |||
Application::$wantHelps | private | property | |||
Application::add | public | function | Adds a command object. | ||
Application::addCommands | public | function | Adds an array of command objects. | ||
Application::all | public | function | Gets the commands (registered in the given namespace if provided). | ||
Application::areExceptionsCaught | public | function | Gets whether to catch exceptions or not during commands execution. | ||
Application::complete | public | function | Adds suggestions to $suggestions for the current completion input (e.g. option or argument). | ||
Application::configureIO | protected | function | Configures the input and output instances based on the user arguments and options. | ||
Application::doRenderThrowable | protected | function | |||
Application::doRun | public | function | Runs the current application. | 1 | |
Application::doRunCommand | protected | function | Runs the current command. | ||
Application::extractAllNamespaces | private | function | Returns all namespaces of the command name. | ||
Application::extractNamespace | public | function | Returns the namespace part of the command name. | ||
Application::find | public | function | Finds a command by name or alias. | ||
Application::findAlternatives | private | function | Finds alternative of $name among $collection, if nothing is found in $collection, try in $abbrevs. |
||
Application::findNamespace | public | function | Finds a registered namespace by a name or an abbreviation. | ||
Application::get | public | function | Returns a registered command by name or alias. | ||
Application::getAbbreviations | public static | function | Returns an array of possible abbreviations given a set of names. | ||
Application::getAbbreviationSuggestions | private | function | Returns abbreviated suggestions in string format. | ||
Application::getAlarmInterval | public | function | Gets the interval in seconds on which a SIGALRM signal is dispatched. | ||
Application::getCommandName | protected | function | Gets the name of the command based on input. | 2 | |
Application::getDefaultHelperSet | protected | function | Gets the default helper set with the helpers that should always be available. | ||
Application::getDefaultInputDefinition | protected | function | Gets the default input definition. | 1 | |
Application::getDefinition | public | function | Gets the InputDefinition related to this Application. | 2 | |
Application::getHelp | public | function | Gets the help message. | 1 | |
Application::getHelperSet | public | function | Get the helper set associated with the command. | ||
Application::getLongVersion | public | function | Returns the long version of the application. | 1 | |
Application::getName | public | function | Gets the name of the application. | ||
Application::getNamespaces | public | function | Returns an array of all unique namespaces used by currently registered commands. | ||
Application::getSignalRegistry | public | function | |||
Application::getVersion | public | function | Gets the application version. | ||
Application::has | public | function | Returns true if the command exists, false otherwise. | ||
Application::init | private | function | |||
Application::isAutoExitEnabled | public | function | Gets whether to automatically exit after a command execution or not. | ||
Application::isSingleCommand | public | function | @internal | ||
Application::register | public | function | Registers a new command. | ||
Application::renderThrowable | public | function | |||
Application::reset | public | function | Overrides ResetInterface::reset | ||
Application::run | public | function | Runs the current application. | 1 | |
Application::scheduleAlarm | private | function | |||
Application::setAlarmInterval | public | function | Sets the interval to schedule a SIGALRM signal in seconds. | ||
Application::setAutoExit | public | function | Sets whether to automatically exit after a command execution or not. | ||
Application::setCatchErrors | public | function | Sets whether to catch errors or not during commands execution. | ||
Application::setCatchExceptions | public | function | Sets whether to catch exceptions or not during commands execution. | ||
Application::setCommandLoader | public | function | |||
Application::setDefaultCommand | public | function | Sets the default Command name. | ||
Application::setDefinition | public | function | |||
Application::setDispatcher | public | function | @final | ||
Application::setHelperSet | public | function | |||
Application::setName | public | function | Sets the application name. | ||
Application::setSignalsToDispatchEvent | public | function | |||
Application::setVersion | public | function | Sets the application version. | ||
Application::splitStringByWidth | private | function | |||
DbToolsApplication::getDefaultCommands | protected | function | Gets the default commands that should always be available. | Overrides Application::getDefaultCommands | |
DbToolsApplication::__construct | public | function | Overrides Application::__construct |