This repository has been archived on 2024-03-08. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
website-old/storage/framework/Env.php
2022-10-04 00:05:13 +02:00

18 lines
No EOL
273 B
PHP

<?php
namespace framework;
class Env
{
static array $env;
static function parse(): void
{
static::$env = parse_ini_file(ROOT . '/.env');
}
static function get(string $key): string|null
{
return static::$env[$key] ?? null;
}
}