PHP Interface Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface

Author: Victor Puertas ([email protected])
Mostra file Open project: spress/spress

Public Methods

Method Description
hasCommand ( string $name ) : boolean Returns true if the command exists, false otherwise.
runCommand ( string $commandName, array $arguments ) : integer Runs a command.

Method Details

hasCommand() public method

This method must be used inside of executeCommand method implementation.
public hasCommand ( string $name ) : boolean
$name string The name of the command. e.g: "site:build"
return boolean

runCommand() public method

Runs a command.
public runCommand ( string $commandName, array $arguments ) : integer
$commandName string The name of the command. e.g: "site:build"
$arguments array The arguments
return integer The command exit code