PHP Class Resque\Commands\Command

Author: Michael Haynes ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: mjphaynes/php-resque

Protected Properties

Свойство Type Description
$config Config array
$configOptionMap Config to options mapping
$logger The logger instance

Méthodes publiques

Méthode Description
log ( ) : boolean Helper function that passes through to logger instance
pollingConsoleOutput ( ) : boolean Should the console output be of the polling format

Méthodes protégées

Méthode Description
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

Method Details

getConfig() protected méthode

Returns all config items or a specific one
protected getConfig ( $key = null ) : mixed
Résultat mixed

initialize() protected méthode

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
Résultat void

log() public méthode

Helper function that passes through to logger instance
See also: Logger::log
public log ( ) : boolean
Résultat boolean

mergeDefinitions() protected méthode

Globally sets some input options that are available for all commands
protected mergeDefinitions ( array $definitions ) : array
$definitions array List of command definitions
Résultat array

parseConfig() protected méthode

Parses the configuration file
protected parseConfig ( $config, $defaults ) : boolean
Résultat boolean

pollingConsoleOutput() public méthode

Should the console output be of the polling format
public pollingConsoleOutput ( ) : boolean
Résultat boolean

Property Details

$config protected_oe property

Config array
protected $config

$configOptionMap protected_oe property

Config to options mapping
protected $configOptionMap

$logger protected_oe property

The logger instance
protected $logger