88ec33ff1a
Update CHANGELOG.md and Configuration class to use LogLib2
...
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release-executable (push) Has been cancelled
CI / debug-executable (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
- 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
561064261c
Version fast-forward
2024-12-27 15:32:00 -05:00
netkas
faad3e69de
Minor correction
2024-12-27 15:30:08 -05:00
netkas
579813315b
Add support for CONFIGLIB_PATH environment variable
2024-12-27 15:20:36 -05:00
netkas
2f41614d20
Update version and improve config validation
2024-09-26 14:57:27 -04:00
netkas
d44020aacf
Refactor ConfigLib and remove outdated tests
2024-09-17 12:02:41 -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
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
fccc0cd20c
Minor correction
2023-07-11 14:36:36 -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
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
56561bca05
Many changes
2023-02-23 16:22:20 -05:00
Netkas
bda571fa77
Initial Commit
2023-02-23 13:11:50 -05:00