38 lines
275 B
PHP
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;
|
|
}
|
|
|
|
?>
|