PHP Class MiniAsset\Cli\BaseTask

Datei anzeigen Open project: markstory/mini-asset

Protected Properties

Property Type Description
$cli
$config

Public Methods

Method Description
__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.

Protected Methods

Method Description
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.

Method Details

__construct() public method

public __construct ( $cli, $config = null )

addArguments() abstract protected method

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

bootstrapApp() protected method

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

config() public method

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

execute() abstract protected method

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

main() public method

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

verbose() public method

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

Property Details

$cli protected_oe property

protected $cli

$config protected_oe property

protected $config