PHP 클래스 MiniAsset\Cli\BaseTask

파일 보기 프로젝트 열기: markstory/mini-asset

보호된 프로퍼티들

프로퍼티 타입 설명
$cli
$config

공개 메소드들

메소드 설명
__construct ( $cli, $config = null )
config ( ) : AssetConfig Get the injected config or build a config object from the CLI option.
main ( array $argv ) : integer Execute the task given a set of CLI arguments.
verbose ( string $text, string $short = '' ) Output verbose information.

보호된 메소드들

메소드 설명
addArguments ( ) : void Used by subclasses to define options.
bootstrapApp ( ) : void Include any additional bootstrap files an application might need to create its environment of constants.
execute ( ) : void Used by subclasses to execute work.

메소드 상세

__construct() 공개 메소드

public __construct ( $cli, $config = null )

addArguments() 추상적인 보호된 메소드

Used by subclasses to define options.
abstract protected addArguments ( ) : void
리턴 void

bootstrapApp() 보호된 메소드

Include any additional bootstrap files an application might need to create its environment of constants.
protected bootstrapApp ( ) : void
리턴 void

config() 공개 메소드

Get the injected config or build a config object from the CLI option.
public config ( ) : AssetConfig
리턴 MiniAsset\AssetConfig

execute() 추상적인 보호된 메소드

Used by subclasses to execute work.
abstract protected execute ( ) : void
리턴 void

main() 공개 메소드

Execute the task given a set of CLI arguments.
public main ( array $argv ) : integer
$argv array The arguments to use.
리턴 integer

verbose() 공개 메소드

Output verbose information.
public verbose ( string $text, string $short = '' )
$text string The text to output.
$short string The short alternative.

프로퍼티 상세

$cli 보호되어 있는 프로퍼티

protected $cli

$config 보호되어 있는 프로퍼티

protected $config