Runs the process.
@api
Closure|string|array $callback A PHP callback to run whenever there is some: output available on STDOUT or STDERR
integer The exit status code
Overrides Process::run
public function run($callback = null) {
if (null === $this
->getCommandLine()) {
if (false === ($php = $this->executableFinder
->find())) {
throw new \RuntimeException('Unable to find the PHP executable.');
}
$this
->setCommandLine($php);
}
return parent::run($callback);
}