function Utils::getenv
@internal
2 calls to Utils::getenv()
- Client::configureDefaults in vendor/
guzzlehttp/ guzzle/ src/ Client.php - Configures the default options for a client.
- CurlMultiHandler::__construct in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php - This handler accepts the following options:
File
-
vendor/
guzzlehttp/ guzzle/ src/ Utils.php, line 360
Class
Namespace
GuzzleHttpCode
public static function getenv(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;
}