function Process::setEnv
Same name in this branch
- 11.1.x vendor/php-tuf/composer-stager/src/Internal/Process/Service/Process.php \PhpTuf\ComposerStager\Internal\Process\Service\Process::setEnv()
- 11.1.x vendor/composer/xdebug-handler/src/Process.php \Composer\XdebugHandler\Process::setEnv()
Sets the environment variables.
Parameters
array<string|\Stringable> $env The new environment variables:
Return value
$this
1 call to Process::setEnv()
- Process::__construct in vendor/
symfony/ process/ Process.php
File
-
vendor/
symfony/ process/ Process.php, line 1126
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function setEnv(array $env) : static {
$this->env = $env;
return $this;
}