class ProcessBuilder

Process builder.

Methods

__construct(array $arguments = array())

No description

static 
create(array $arguments = array())

No description

add(string $argument)

Adds an unescaped argument to the command string.

setPrefix(string $prefix)

Adds an unescaped prefix to the command string.

setArguments(array $arguments)

No description

setWorkingDirectory($cwd)

No description

inheritEnvironmentVariables($inheritEnv = true)

No description

setEnv($name, $value)

No description

setInput($stdin)

No description

setTimeout(float|null $timeout)

Sets the process timeout.

setOption($name, $value)

No description

getProcess()

No description

Details

at line line 33
__construct(array $arguments = array())

Parameters

array $arguments

at line line 43
static create(array $arguments = array())

Parameters

array $arguments

at line line 55
ProcessBuilder add(string $argument)

Adds an unescaped argument to the command string.

Parameters

string $argument A command argument

Return Value

ProcessBuilder

at line line 71
ProcessBuilder setPrefix(string $prefix)

Adds an unescaped prefix to the command string.

The prefix is preserved when reseting arguments.

Parameters

string $prefix A command prefix

Return Value

ProcessBuilder

at line line 83
ProcessBuilder setArguments(array $arguments)

Parameters

array $arguments

Return Value

ProcessBuilder

at line line 90
setWorkingDirectory($cwd)

Parameters

$cwd

at line line 97
inheritEnvironmentVariables($inheritEnv = true)

Parameters

$inheritEnv

at line line 104
setEnv($name, $value)

Parameters

$name
$value

at line line 111
setInput($stdin)

Parameters

$stdin

at line line 129
ProcessBuilder setTimeout(float|null $timeout)

Sets the process timeout.

To disable the timeout, set this value to null.

Parameters

float|null $timeout

Return Value

ProcessBuilder

Exceptions

InvalidArgumentException

at line line 148
setOption($name, $value)

Parameters

$name
$value

at line line 155
getProcess()