PHP 인터페이스 Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface

저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress

공개 메소드들

메소드 설명
hasCommand ( string $name ) : boolean Returns true if the command exists, false otherwise.
runCommand ( string $commandName, array $arguments ) : integer Runs a command.

메소드 상세

hasCommand() 공개 메소드

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"
리턴 boolean

runCommand() 공개 메소드

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
리턴 integer The command exit code