PHP 클래스 Symfony\Component\Process\PhpProcess

상속: extends Process
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $script, string $cwd = null, array $env = [], integer $timeout = 60, array $options = [] ) Constructor.
getPhpBinary ( ) : string Returns the PHP binary path.
run ( Closure | string | array $callback = null ) : integer run the process.
setPhpBinary ( $php ) Sets the path to the PHP binary to use.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $script, string $cwd = null, array $env = [], integer $timeout = 60, array $options = [] )
$script string The PHP script to run (as a string)
$cwd string The working directory
$env array The environment variables
$timeout integer The timeout in seconds
$options array An array of options for proc_open

getPhpBinary() 공개 정적인 메소드

Returns the PHP binary path.
public static getPhpBinary ( ) : string
리턴 string The PHP binary path

run() 공개 메소드

run the process.
public run ( Closure | string | array $callback = null ) : integer
$callback Closure | string | array A PHP callback to run whenever there is some output available on STDOUT or STDERR
리턴 integer The exit status code

setPhpBinary() 공개 메소드

Sets the path to the PHP binary to use.
public setPhpBinary ( $php )