class DbToolsApplication in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Command/DbToolsApplication.php \Drupal\Core\Command\DbToolsApplication
Provides a command to import a database generation script.
Hierarchy
- class \Symfony\Component\Console\Application
- class \Drupal\Core\Command\DbToolsApplication
Expanded class hierarchy of DbToolsApplication
2 files declare their use of DbToolsApplication
- db-tools.php in core/
scripts/ db-tools.php - DbToolsApplicationTest.php in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbToolsApplicationTest.php - Contains \Drupal\Tests\system\Kernel\Scripts\DbToolsApplicationTest.
File
- core/
lib/ Drupal/ Core/ Command/ DbToolsApplication.php, line 15 - Contains \Drupal\Core\Command\DbToolsApplication.
Namespace
Drupal\Core\CommandView source
class DbToolsApplication extends Application {
/**
* {@inheritdoc}
*/
public function __construct() {
parent::__construct('Database Tools', '8.0.x');
}
/**
* {@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 |
---|---|---|---|---|
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
private | property | ||
Application:: |
public | function | Adds a command object. | |
Application:: |
public | function | Adds an array of command objects. | |
Application:: |
public | function | Gets the commands (registered in the given namespace if provided). | |
Application:: |
public | function | Returns a text representation of the Application. | |
Application:: |
public | function | Returns an XML representation of the Application. | |
Application:: |
protected | function | Configures the input and output instances based on the user arguments and options. | |
Application:: |
public | function | Runs the current application. | |
Application:: |
protected | function | Runs the current command. | |
Application:: |
private | function | Returns all namespaces of the command name. | |
Application:: |
public | function | Returns the namespace part of the command name. | |
Application:: |
public | function | Finds a command by name or alias. | |
Application:: |
private | function | Finds alternative of $name among $collection, if nothing is found in $collection, try in $abbrevs. | |
Application:: |
public | function | Finds a registered namespace by a name or an abbreviation. | |
Application:: |
public | function | Returns a registered command by name or alias. | |
Application:: |
public static | function | Returns an array of possible abbreviations given a set of names. | |
Application:: |
private | function | Returns abbreviated suggestions in string format. | |
Application:: |
protected | function | Gets the name of the command based on input. | 2 |
Application:: |
private | function | Runs and parses mode CON if it's available, suppressing any error output. | |
Application:: |
protected | function | Gets the default helper set with the helpers that should always be available. | 1 |
Application:: |
protected | function | Gets the default input definition. | 1 |
Application:: |
public | function | Gets the InputDefinition related to this Application. | 2 |
Application:: |
public | function | Gets the help message. | |
Application:: |
public | function | Get the helper set associated with the command. | |
Application:: |
public | function | Returns the long version of the application. | |
Application:: |
public | function | Gets the name of the application. | |
Application:: |
public | function | Returns an array of all unique namespaces used by currently registered commands. | |
Application:: |
private | function | Runs and parses stty -a if it's available, suppressing any error output. | |
Application:: |
public | function | Tries to figure out the terminal dimensions based on the current environment. | |
Application:: |
protected | function | Tries to figure out the terminal height in which this application runs. | |
Application:: |
protected | function | Tries to figure out the terminal width in which this application runs. | |
Application:: |
public | function | Gets the application version. | |
Application:: |
public | function | Returns true if the command exists, false otherwise. | |
Application:: |
public | function | Registers a new command. | |
Application:: |
public | function | Renders a caught exception. | |
Application:: |
public | function | Runs the current application. | |
Application:: |
public | function | Sets whether to automatically exit after a command execution or not. | |
Application:: |
public | function | Sets whether to catch exceptions or not during commands execution. | |
Application:: |
public | function | Sets the default Command name. | |
Application:: |
public | function | Set an input definition set to be used with this application. | |
Application:: |
public | function | ||
Application:: |
public | function | Set a helper set to be used with the command. | |
Application:: |
public | function | Sets the application name. | |
Application:: |
public | function | Sets terminal dimensions. | |
Application:: |
public | function | Sets the application version. | |
Application:: |
private | function | ||
Application:: |
private | function | ||
DbToolsApplication:: |
protected | function |
Gets the default commands that should always be available. Overrides Application:: |
|
DbToolsApplication:: |
public | function |
Constructor. Overrides Application:: |