PHP 클래스 Joomlatools\Console\Application

상속: extends Symfony\Component\Console\Application
파일 보기 프로젝트 열기: joomlatools/joomla-console 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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