Commit graph

20 commits

Author SHA1 Message Date
netkas
ff2296c786 Fix configuration path resolution and add setup script 2024-10-29 00:26:37 -04:00
netkas
2c05ae8b3c Updated CHANGELOG.md 2024-10-29 00:26:37 -04:00
netkas
230f865093 Updated CHANGELOG.md 2024-10-29 00:26:23 -04:00
e4c494ef58 Bumped version to 1.1.1 2024-10-29 00:26:07 -04:00
ec3a7834c6
Revert "Corrected CHANGELOG.md"
This reverts commit 85f0aab16b.
2023-08-13 19:00:29 -04:00
85f0aab16b
Corrected CHANGELOG.md 2023-08-13 18:10:58 -04:00
906e168ade
Updated CHANGELOG.md 2023-08-12 08:56:18 -04:00
544b9f2e1c
Added the ability to override configuration properties with environment variables using the format CONFIGLIB_<CONFIG_NAME>_<PROPERTY_NAME> 2023-08-12 08:39:02 -04:00
b26d818d6b
Corrected a few lines of code in regards to missing variable definitions 2023-08-12 02:20:40 -04:00
8835ad9702
Bumped version to 1.0.4 2023-08-12 01:54:59 -04:00
fbf86f7a92
Updated CHANGELOG.md 2023-08-12 01:53:41 -04:00
5afae885db
Fixed Fatal error: Uncaught TypeError: array_replace_recursive(): Argument #1 ($array) must be of type array, null given in /var/ncc/packages/net.nosial.configlib=1.0.2/src/ConfigLib/Configuration.php:331 2023-07-13 17:05:32 -04:00
a3c04e1c36
Fixed issue #1 in Configuration->__construct() where the name of an environment variable was being used instead of its value when determining the configuration file path. This incorrect handling resulted in warnings about non-existent files and hindered the proper loading of configuration files. With this fix, environment variables should now correctly guide the path to the desired configuration files, improving the flexibility and functionality of the configuration library. 2023-07-11 22:25:53 -04:00
f7c64f4ba6
Updated CHANGELOG.md 2023-07-11 14:37:39 -04:00
0a8bb3a607
Refactored codebase to be more maintainable, readable & more optimized 2023-07-11 14:27:21 -04:00
87fac4d19c
Merged str_replace functions 2023-07-11 14:15:38 -04:00
286868933e
Updated CHANGELOG.md 2023-07-11 13:55:57 -04:00
d1ada4667d
Updated CHANGELOG.md 2023-07-11 13:53:42 -04:00
822ae9ac76
ConfigurationLib will now attempt to load configuration files from Environment Variables if they are set, for example if com.example.application wants to load ExampleConfiguration it will first check if CONFIGLIB_EXAMPLECONFIGURATION is set, and if so, load that file instead of the default example-configuration.yml file. If the file is not found, it will resort to its default behavior. You can either load an original json configuration file which is usually located at \var\ncc\data\net.nosial.configlib as one of the .conf files, or you can load a yml which is the same one you usually use to import or edit configurations. 2023-07-11 13:53:24 -04:00
Netkas
4d58db1ac0 Added CHANGELOG.md 2023-02-23 16:31:04 -05:00