Skip to content

Commit fc534d5

Browse files
committed
Support getenv by setting vars with putenv
1 parent c216919 commit fc534d5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ProcessMaker/Multitenancy/TenantBootstrapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ private function set($key, $value)
146146
// Env::getRepository() is immutable but will use values from $_SERVER and $_ENV
147147
$_SERVER[$key] = $value;
148148
$_ENV[$key] = $value;
149+
putenv("$key=$value");
149150
}
150151

151152
private function decrypt($value)

ProcessMaker/Providers/ProcessMakerServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ private static function resetTenantApp($event): void
299299
foreach (self::$landlordValues as $key => $value) {
300300
$_SERVER[$key] = $value;
301301
$_ENV[$key] = $value;
302+
putenv("$key=$value");
302303
}
303304
}
304305

0 commit comments

Comments
 (0)