Commit graph

24 commits

Author SHA1 Message Date
88ec33ff1a
Update CHANGELOG.md and Configuration class to use LogLib2
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release-executable (push) Waiting to run
CI / debug-executable (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
- Added entry for version 1.1.7 in CHANGELOG.md
- Updated remote references for dependencies
- Changed logger implementation in Configuration class to use LogLib2
2025-03-14 15:00:35 -04:00
netkas
936485dde7 - Added a new constructor parameter called path which is an optional parameter that allows you to specify the path to
the configuration files directory. If not specified the library will proceed with resolving
   the path to the configuration files directory using the default method. This will override
   the `CONFIGLIB_PATH` environment variable if it is set.
 - Changed properties to become typed properties
2025-01-07 21:14:03 -05:00
netkas
6966fd39d0 Bumped version to 1.1.6 2025-01-07 21:08:11 -05:00
netkas
09b2e88e1c Updated CHANGELOG.md 2024-12-27 15:33:59 -05:00
netkas
015f13bf12 Updated CHANGELOG.md 2024-12-27 15:25:49 -05:00
netkas
994d4092fc Updated project 2024-12-27 15:20:42 -05:00
netkas
489df9f79a Updated CHANGELOG.md 2024-09-26 14:58:09 -04:00
netkas
386e137547 Updated CHANGELOG.md 2024-09-23 13:48:41 -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