core/source/conf.php
2025-09-09 10:07:53 +00:00

38 lines
275 B
PHP

<?php
namespace davigil\conf;
/**
*/
class _state
{
public static $data = null;
}
/**
*/
function load(
string $path
) : void
{
_state::$data = \json_decode(
\file_get_contents(
$path
),
true
);
}
/**
*/
function get(
)
{
return _state::$data;
}
?>