Sets the current working directory.
Parameters
string $cwd The new working directory:
Return value
self The current Process instance
File
- drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 925
Class
- Process
- Process is a thin wrapper around proc_* functions to ease
start independent PHP processes.
Namespace
Symfony\Component\Process
Code
public function setWorkingDirectory($cwd) {
$this->cwd = $cwd;
return $this;
}