PHP 인터페이스 Platformsh\Cli\Helper\ShellHelperInterface

파일 보기 프로젝트 열기: commerceguys/platform-cli 0 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
commandExists ( string $command ) : boolean Check whether a shell command exists.
execute ( array $args, string | false $dir = null, boolean $mustRun = false, boolean $quiet = false ) : string | boolean Run a shell command, suppressing errors.
resolveCommand ( string $command ) : string Resolve the absolute path to a command.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
$output Symfony\Component\Console\Output\OutputInterface

commandExists() 공개 메소드

Check whether a shell command exists.
public commandExists ( string $command ) : boolean
$command string
리턴 boolean

execute() 공개 메소드

Run a shell command, suppressing errors.
public execute ( array $args, string | false $dir = null, boolean $mustRun = false, boolean $quiet = false ) : string | boolean
$args array
$dir string | false
$mustRun boolean
$quiet boolean
리턴 string | boolean The command's output or true on success, false on failure.

resolveCommand() 공개 메소드

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
리턴 string