Lines Matching refs:env
55 private $env; variable in Symfony\\Component\\Process\\Process
137 …* @param array|null $env The environment variables or null to use the same environment…
144 …public function __construct($commandline, $cwd = null, array $env = null, $input = null, $timeout … argument
160 if (null !== $env) {
161 $this->setEnv($env);
208 $env = 1 < \func_num_args() ? func_get_arg(1) : null;
209 $this->start($callback, $env);
232 $env = 1 < \func_num_args() ? func_get_arg(1) : null;
234 if (0 !== $this->run($callback, $env)) {
266 $env = func_get_arg(1);
274 $env = null;
293 if (null === $env) {
294 $env = $this->env;
296 if ($this->env) {
297 $env += $this->env;
302 if (null !== $env && $inheritEnv) {
303 $env += $this->getDefaultEnv();
304 } elseif (null !== $env) {
307 $env = $this->getDefaultEnv();
311 $commandline = $this->prepareWindowsCommandLine($commandline, $env);
325 $envPairs = $env;
328 foreach ($env as $k => $v) {
380 $env = 1 < \func_num_args() ? func_get_arg(1) : null;
383 $process->start($callback, $env);
1117 return $this->env;
1131 * @param array $env The new environment variables
1135 public function setEnv(array $env) argument
1138 $env = array_filter($env, function ($value) {
1142 $this->env = $env;
1628 private function prepareWindowsCommandLine($cmd, array &$env) argument
1641 function ($m) use (&$env, &$varCache, &$varCount, $uid) {
1659 $env[$var] = $value;
1730 $env = [];
1734 $env[$k] = $v;
1740 $env[$k] = $v;
1744 return $env;