Ship the migrated LaySite 1.5.2 site ready to start

This commit is contained in:
2026-11-28 14:58:07 +08:00
parent c105ff288c
commit e2bff08f7d
1161 changed files with 153308 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace GuzzleHttp;
/**
* Reads configuration from the process environment.
*
* Intentionally separate from Handler\ProxyEnv, which has different
* lookup semantics.
*
* @internal
*/
final class Env
{
private function __construct()
{
}
public static function get(string $name): ?string
{
if (isset($_SERVER[$name])) {
return (string) $_SERVER[$name];
}
if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== false && $value !== null) {
return (string) $value;
}
return null;
}
}