PHP 클래스 VersionPress\Utils\Process

상속: extends Symfony\Component\Process\Process
파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $commandline, $cwd = null, array $env = null, $input = null, $timeout = 3600, array $options = [] )
addErrorOutput ( $line )
addOutput ( $line )
getConsoleOutput ( ) : string Returns output as it would appear in the console and doesn't care whether it comes from STDOUT or STDERR (or both).
start ( $callback = null )

메소드 상세

__construct() 공개 메소드

public __construct ( $commandline, $cwd = null, array $env = null, $input = null, $timeout = 3600, array $options = [] )
$env array
$options array

addErrorOutput() 공개 메소드

public addErrorOutput ( $line )

addOutput() 공개 메소드

public addOutput ( $line )

getConsoleOutput() 공개 메소드

This is useful in client code that just wants to show the user whatever the command printed. The programs will sometimes use STDOUT, sometimes STDERR, sometimes mistakenly STDOUT instead of STDERR etc. but it often doesn't matter, we just want to pass the output on to the user.
public getConsoleOutput ( ) : string
리턴 string

start() 공개 메소드

public start ( $callback = null )