getnamingo-registry/cp/app/Lib/Config.php
2023-08-07 13:14:05 +03:00

18 lines
408 B
PHP

<?php namespace App\Lib;
/**
* Config
*
* @author Hezekiah O. <support@hezecom.com>
*/
class Config
{
private static $config;
public static function get($key, $default = null)
{
if (is_null(self::$config)) {
self::$config = require_once(__DIR__ . '/../../config/app.php');
}
return !empty(self::$config[$key]) ? self::$config[$key] : $default;
}
}