PHP 클래스 Platformsh\Cli\Helper\ShellHelper

상속: extends Symfony\Component\Console\Helper\Helper, implements Platformsh\Cli\Helper\ShellHelperInterface
파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultTimeout
$output Symfony\Component\Console\Output\OutputInterface

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
commandExists ( $command )
execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
executeSimple ( string $commandline, string | null $dir = null ) : integer Execute a command, using STDIN, STDERR and STDOUT directly.
getName ( )
resolveCommand ( $command )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

보호된 메소드들

메소드 설명
findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean Run 'where' or equivalent on a command.
runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string

메소드 상세

__construct() 공개 메소드

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

commandExists() 공개 메소드

public commandExists ( $command )

execute() 공개 메소드

public execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
$args array

executeSimple() 공개 메소드

Execute a command, using STDIN, STDERR and STDOUT directly.
public executeSimple ( string $commandline, string | null $dir = null ) : integer
$commandline string
$dir string | null
리턴 integer The command's exit code (0 on success, a different integer on failure).

findWhere() 보호된 메소드

Run 'where' or equivalent on a command.
protected findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean
$command string
$noticeOnError boolean
리턴 string | boolean A list of command paths (one per line) or false on failure.

getName() 공개 메소드

public getName ( )

resolveCommand() 공개 메소드

public resolveCommand ( $command )

runProcess() 보호된 메소드

protected runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string
$process Symfony\Component\Process\Process
$mustRun boolean
$quiet boolean
리턴 integer | string

setOutput() 공개 메소드

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

프로퍼티 상세

$defaultTimeout 보호되어 있는 프로퍼티

protected $defaultTimeout

$output 보호되어 있는 프로퍼티

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface