class CustomApplication in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\CustomApplication
Hierarchy
- class \Symfony\Component\Console\Application
- class \Symfony\Component\Console\Tests\CustomApplication
Expanded class hierarchy of CustomApplication
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 1024
Namespace
Symfony\Component\Console\TestsView source
class CustomApplication extends Application {
/**
* Overwrites the default input definition.
*
* @return InputDefinition An InputDefinition instance
*/
protected function getDefaultInputDefinition() {
return new InputDefinition(array(
new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.'),
));
}
/**
* Gets the default helper set with the helpers that should always be available.
*
* @return HelperSet A HelperSet instance
*/
protected function getDefaultHelperSet() {
return new HelperSet(array(
new FormatterHelper(),
));
}
}
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 commands that should always be available. | 3 |
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 | ||
Application:: |
public | function | Constructor. | 4 |
CustomApplication:: |
protected | function |
Gets the default helper set with the helpers that should always be available. Overrides Application:: |
|
CustomApplication:: |
protected | function |
Overwrites the default input definition. Overrides Application:: |