mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-06 01:25:00 +02:00
Initial upload of the control panel
This commit is contained in:
parent
f21bd93fbc
commit
7eab26586c
791 changed files with 312718 additions and 0 deletions
18
cp/app/Lib/Config.php
Normal file
18
cp/app/Lib/Config.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue