class GenerateProxyClassApplication in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php \Drupal\Core\Command\GenerateProxyClassApplication
Provides a console command to generate proxy classes.
Hierarchy
- class \Symfony\Component\Console\Application
- class \Drupal\Core\Command\GenerateProxyClassApplication
Expanded class hierarchy of GenerateProxyClassApplication
1 file declares its use of GenerateProxyClassApplication
- generate-proxy-class.php in core/
scripts/ generate-proxy-class.php
File
- core/
lib/ Drupal/ Core/ Command/ GenerateProxyClassApplication.php, line 17 - Contains \Drupal\Core\Command\GenerateProxyClassApplication.
Namespace
Drupal\Core\CommandView source
class GenerateProxyClassApplication extends Application {
/**
* The proxy builder.
*
* @var \Drupal\Component\ProxyBuilder\ProxyBuilder
*/
protected $proxyBuilder;
/**
* Constructs a new GenerateProxyClassApplication instance.
*
* @param \Drupal\Component\ProxyBuilder\ProxyBuilder $proxy_builder
* The proxy builder.
*/
public function __construct(ProxyBuilder $proxy_builder) {
$this->proxyBuilder = $proxy_builder;
parent::__construct();
}
/**
* {@inheritdoc}
*/
protected function getCommandName(InputInterface $input) {
return 'generate-proxy-class';
}
/**
* {@inheritdoc}
*/
protected function getDefaultCommands() {
// Even though this is a single command, keep the HelpCommand (--help).
$default_commands = parent::getDefaultCommands();
$default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder);
return $default_commands;
}
/**
* {@inheritdoc}
*
* Overridden so the application doesn't expect the command name as the first
* argument.
*/
public function getDefinition() {
$definition = parent::getDefinition();
// Clears the normal first argument (the command name).
$definition
->setArguments();
return $definition;
}
}
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:: |
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 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 | ||
GenerateProxyClassApplication:: |
protected | property | The proxy builder. | |
GenerateProxyClassApplication:: |
protected | function |
Gets the name of the command based on input. Overrides Application:: |
|
GenerateProxyClassApplication:: |
protected | function |
Gets the default commands that should always be available. Overrides Application:: |
|
GenerateProxyClassApplication:: |
public | function |
Overridden so the application doesn't expect the command name as the first
argument. Overrides Application:: |
|
GenerateProxyClassApplication:: |
public | function |
Constructs a new GenerateProxyClassApplication instance. Overrides Application:: |