13 lines
316 B
PHP
13 lines
316 B
PHP
<?php
|
|
|
|
if (! function_exists('getenvonce')) {
|
|
function getenvonce(string $name) : array|string|false
|
|
{
|
|
$value = getenv($name);
|
|
unset($_ENV[$name], $_SERVER[$name]);
|
|
putenv($name . "=");
|
|
return $value;
|
|
}
|
|
}
|
|
|
|
return require("env/" . ( getenv('APP_ENV') ?? 'prod' ) . ".php"); |