public function PhpProcess::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/PhpProcess.php \Symfony\Component\Process\PhpProcess::__construct()
 
Constructor.
Parameters
string $script The PHP script to run (as a string):
string|null $cwd The working directory or null to use the working dir of the current PHP process:
array|null $env The environment variables or null to use the same environment as the current PHP process:
int $timeout The timeout in seconds:
array $options An array of options for proc_open:
Overrides Process::__construct
File
- vendor/
symfony/ process/ PhpProcess.php, line 36  
Class
- PhpProcess
 - PhpProcess runs a PHP script in an independent process.
 
Namespace
Symfony\Component\ProcessCode
public function __construct($script, $cwd = null, array $env = null, $timeout = 60, array $options = array()) {
  $executableFinder = new PhpExecutableFinder();
  if (false === ($php = $executableFinder
    ->find())) {
    $php = null;
  }
  parent::__construct($php, $cwd, $env, $script, $timeout, $options);
}