Pass on cwd to the sub-process in \TamerLib\Objects > WorkerInstance > start()

This commit is contained in:
Netkas 2023-06-16 03:44:18 -04:00
parent 13ad2b0ef8
commit 13cade66cc
No known key found for this signature in database
GPG key ID: 5DAF58535614062B

View file

@ -104,6 +104,7 @@
$php_bin = (new PhpExecutableFinder())->find();
$process = new Process(array_merge([$php_bin, $this->path], $pass_args));
$process->setWorkingDirectory(getcwd());
$process->setEnv($this->configuration->toEnvironment());
try