Added the ability to override configuration properties with environment variables using the format CONFIGLIB_<CONFIG_NAME>_<PROPERTY_NAME>

This commit is contained in:
Netkas 2023-08-12 08:39:02 -04:00
parent b26d818d6b
commit 544b9f2e1c
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
3 changed files with 44 additions and 0 deletions

8
tests/load.php Normal file
View file

@ -0,0 +1,8 @@
<?php
require 'ncc';
import('net.nosial.configlib');
$config = new \ConfigLib\Configuration('test');
var_dump($config->getConfiguration());