Symfony\Component\Process\Process::__construct
Constructor.
Signature
public function __construct(string
$commandline,
[string
$cwd = null,
[array
$env = null,
[string
$stdin = null,
[integer
$timeout = 60,
array
$options]]]] )
Parameters
$commandline
—
string
- The command line to run
$cwd
—
string
- The working directory
$env
—
array
- The environment variables or null to inherit
$stdin
—
string
- The STDIN content
$timeout
—
integer
- The timeout in seconds
$options
—
array
- An array of options for proc_open
Errors/Exceptions
-
RuntimeException
- When proc_open is not installed