public function Process::getWorkingDirectory in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::getWorkingDirectory()
Gets the working directory.
Return value
string|null The current working directory or null on failure
File
- vendor/
symfony/ process/ Process.php, line 976
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function getWorkingDirectory() {
if (null === $this->cwd) {
// getcwd() will return false if any one of the parent directories does not have
// the readable or search mode set, even if the current directory does
return getcwd() ?: null;
}
return $this->cwd;
}