PHP Класс Joomlatools\Console\Application

Наследование: extends Symfony\Component\Console\Application
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
_loadPlugins ( ) Loads plugins into the application.
getDefaultCommands ( ) : Command[] Gets the default commands that should always be available.

Описание методов

__construct() публичный Метод

public __construct ( string $name = 'UNKNOWN', string $version = 'UNKNOWN' )
$name string
$version string

_loadPlugins() защищенный Метод

Loads plugins into the application.
protected _loadPlugins ( )

getDefaultCommands() защищенный Метод

Gets the default commands that should always be available.
protected getDefaultCommands ( ) : Command[]
Результат Command[] An array of default Command instances

getPluginPath() публичный Метод

Get the plugin path
public getPluginPath ( ) : string
Результат string Path to the plugins directory

getPlugins() публичный Метод

Get the list of installed plugin packages.
public getPlugins ( ) : array
Результат array Array of package names as key and their version as value

run() публичный Метод

Runs the current application.
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
Результат integer 0 if everything went fine, or an error code

Описание свойств

$_input защищенное свойство

Reference to the Input\ArgvInput object
protected $_input

$_output защищенное свойство

Reference to the Output\ConsoleOutput object
protected $_output

$_plugin_path защищенное свойство

The path to the plugin directory
protected string $_plugin_path
Результат string

$_plugins защищенное свойство

List of installed plugins
protected $_plugins