8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce29e0a commit 9e1d11dCopy full SHA for 9e1d11d
src/Symfony/Component/Process/ProcessBuilder.php
@@ -145,6 +145,17 @@ public function setEnv($name, $value)
145
return $this;
146
}
147
148
+ /**
149
+ * Adds a set of environment variables.
150
+ *
151
+ * Already existing environment variables with the same name will be
152
+ * overridden by the new values passed to this method. Pass `null` to unset
153
+ * a variable.
154
155
+ * @param array $variables The variables
156
157
+ * @return ProcessBuilder
158
+ */
159
public function addEnvironmentVariables(array $variables)
160
{
161
$this->env = array_replace($this->env, $variables);
0 commit comments