PHP Класс MiniAsset\Cli\BaseTask

Показать файл Открыть проект

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

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