Added the ability to override configuration properties with environment variables using the format CONFIGLIB_<CONFIG_NAME>_<PROPERTY_NAME>
This commit is contained in:
parent
b26d818d6b
commit
544b9f2e1c
3 changed files with 44 additions and 0 deletions
8
tests/load.php
Normal file
8
tests/load.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
require 'ncc';
|
||||
import('net.nosial.configlib');
|
||||
|
||||
$config = new \ConfigLib\Configuration('test');
|
||||
|
||||
var_dump($config->getConfiguration());
|
Loading…
Add table
Add a link
Reference in a new issue