blob: 710c9e04619a40e3f659fab500e3cb292c2ff8e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
namespace App\Config;
/**
* Config class to handle loading and returning config stuff
*
* @author Phil Burton <phil@pgburton.com>
*/
class Config
{
/**
* Cached config
*
* @var mixed[]
*/
protected static $config;
/**
* Return the cofnig
*
* @author Phil Burton <phil@pgburton.com>
* @return mixed[]
*/
public static function getconfig()
{
if (!static::$config) {
static::$config = include SITE_ROOT . '/config/messages.php';
}
return static::$config;
}
}
|