diff options
Diffstat (limited to 'localwebsite/classes/config.php')
-rw-r--r-- | localwebsite/classes/config.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/localwebsite/classes/config.php b/localwebsite/classes/config.php new file mode 100644 index 0000000..87ecf1c --- /dev/null +++ b/localwebsite/classes/config.php @@ -0,0 +1,10 @@ +<?php + +class config { + + public static function get(string $key) { + global $config; + return is_callable($config[$key]) ? $config[$key]() : $config[$key]; + } + +}
\ No newline at end of file |