public function ProcessBuilder::setEnv in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/ProcessBuilder.php \Symfony\Component\Process\ProcessBuilder::setEnv()
Sets an environment variable.
Setting a variable overrides its previous value. Use `null` to unset a defined environment variable.
Parameters
string $name The variable name:
null|string $value The variable value:
Return value
File
- vendor/
symfony/ process/ ProcessBuilder.php, line 142
Class
- ProcessBuilder
- Process builder.
Namespace
Symfony\Component\ProcessCode
public function setEnv($name, $value) {
$this->env[$name] = $value;
return $this;
}