PHP Класс Resque\Commands\Command

Автор: Michael Haynes ([email protected])
Наследование: extends Symfony\Component\Console\Command\Command
Показать файл Открыть проект

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

Свойство Тип Описание
$config Config array
$configOptionMap Config to options mapping
$logger The logger instance

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

Метод Описание
log ( ) : boolean Helper function that passes through to logger instance
pollingConsoleOutput ( ) : boolean Should the console output be of the polling format

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

Метод Описание
getConfig ( $key = null ) : mixed Returns all config items or a specific one
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void Initialises the command just after the input has been validated.
mergeDefinitions ( array $definitions ) : array Globally sets some input options that are available for all commands
parseConfig ( $config, $defaults ) : boolean Parses the configuration file

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

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

Returns all config items or a specific one
protected getConfig ( $key = null ) : mixed
Результат mixed

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

This is mainly useful when a lot of commands extends one main command where some things need to be initialised based on the input arguments and options.
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance
Результат void

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

Helper function that passes through to logger instance
См. также: Logger::log
public log ( ) : boolean
Результат boolean

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

Globally sets some input options that are available for all commands
protected mergeDefinitions ( array $definitions ) : array
$definitions array List of command definitions
Результат array

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

Parses the configuration file
protected parseConfig ( $config, $defaults ) : boolean
Результат boolean

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

Should the console output be of the polling format
public pollingConsoleOutput ( ) : boolean
Результат boolean

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

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

Config array
protected $config

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

Config to options mapping
protected $configOptionMap

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

The logger instance
protected $logger