diff --git a/composer.json b/composer.json index d4a1de1..b4eb249 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "interaapps/ulole", "type": "library", - "version": "3.1.2", + "version": "3.1.3", "authors": [ { "name": "JulianFun123", diff --git a/src/main/de/interaapps/ulole/core/config/Configuration.php b/src/main/de/interaapps/ulole/core/config/Configuration.php index f43663d..e631754 100644 --- a/src/main/de/interaapps/ulole/core/config/Configuration.php +++ b/src/main/de/interaapps/ulole/core/config/Configuration.php @@ -16,6 +16,12 @@ public function loadPHPFile($file, $parent = null): Configuration { return $this; } + public function loadENV(): Configuration { + foreach (getenv() as $key => $val) + $this->configEntries[$key] = $val; + return $this; + } + public function loadENVFile($file, $parent = null): Configuration { if (file_exists($file)) { $envFile = file_get_contents($file); diff --git a/uppm.json b/uppm.json index 2477559..0356bb1 100644 --- a/uppm.json +++ b/uppm.json @@ -1,6 +1,6 @@ { "name": "ulole-core", - "version": "3.1.2", + "version": "3.1.3", "repositories": [], "run": {}, "build": {},