Свойство | Type | Description | |
---|---|---|---|
$_input | Reference to the Input\ArgvInput object | ||
$_output | Reference to the Output\ConsoleOutput object | ||
$_plugin_path | string | The path to the plugin directory | |
$_plugins | List of installed plugins |
Méthode | Description | |
---|---|---|
__construct ( string $name = 'UNKNOWN', string $version = 'UNKNOWN' ) | ||
getPluginPath ( ) : string | Get the plugin path | |
getPlugins ( ) : array | Get the list of installed plugin packages. | |
run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer | Runs the current application. |
Méthode | Description | |
---|---|---|
_loadPlugins ( ) | Loads plugins into the application. | |
getDefaultCommands ( ) : Command[] | Gets the default commands that should always be available. |
public __construct ( string $name = 'UNKNOWN', string $version = 'UNKNOWN' ) | ||
$name | string | |
$version | string |
protected getDefaultCommands ( ) : Command[] | ||
Résultat | Command[] | An array of default Command instances |
public getPluginPath ( ) : string | ||
Résultat | string | Path to the plugins directory |
public getPlugins ( ) : array | ||
Résultat | array | Array of package names as key and their version as value |
public run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer | ||
$input | Symfony\Component\Console\Input\InputInterface | An Input instance |
$output | Symfony\Component\Console\Output\OutputInterface | An Output instance |
Résultat | integer | 0 if everything went fine, or an error code |
protected string $_plugin_path | ||
Résultat | string |