public function PhpProcess::__construct

Constructor.

@api

Parameters

string $script The PHP script to run (as a string):

string $cwd The working directory:

array $env The environment variables:

integer $timeout The timeout in seconds:

array $options An array of options for proc_open:

Overrides Process::__construct

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/PhpProcess.php, line 40

Class

PhpProcess
PhpProcess runs a PHP script in an independent process.

Namespace

Symfony\Component\Process

Code

public function __construct($script, $cwd = null, array $env = array(), $timeout = 60, array $options = array()) {
  parent::__construct(null, $cwd, $env, $script, $timeout, $options);
  $this->executableFinder = new PhpExecutableFinder();
}