mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 00:27:03 +02:00
18 lines
408 B
PHP
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;
|
|
}
|
|
}
|