Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::setEnv

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Process/Service/Process.php \PhpTuf\ComposerStager\Internal\Process\Service\Process::setEnv()
  2. 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\Process

Code

public function setEnv(array $env) : static {
    $this->env = $env;
    return $this;
}
RSS feed
Powered by Drupal