| 1 | <?php |
||
| 11 | class ConfigHelper |
||
| 12 | { |
||
| 13 | const CONFIG_NAMESPACE = 'hello'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var null|Config |
||
| 17 | */ |
||
| 18 | protected static $config = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $key |
||
| 22 | * @param null $default |
||
| 23 | * @return mixed|\Nip\Config\Config |
||
| 24 | */ |
||
| 25 | 3 | public static function get(string $key, $default = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param Config $object |
||
| 42 | */ |
||
| 43 | 1 | public static function setConfig($object) |
|
| 47 | } |
||
| 48 |