feat(config): implement config lexicon - #44371
Closed
ArtificialOwl wants to merge 5 commits into
Closed
Conversation
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
March 21, 2024 00:35
f374de6 to
b7c0296
Compare
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
March 22, 2024 00:21
b7c0296 to
eee62ee
Compare
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
April 3, 2024 17:14
837a165 to
e49c1a5
Compare
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
April 22, 2024 12:22
e49c1a5 to
c0eb002
Compare
ArtificialOwl
marked this pull request as ready for review
April 22, 2024 12:26
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
April 22, 2024 17:36
c0eb002 to
1eb6edc
Compare
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
April 22, 2024 19:27
1eb6edc to
923d52a
Compare
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
2 times, most recently
from
April 23, 2024 00:28
7ac3ee4 to
161314f
Compare
come-nc
reviewed
Apr 30, 2024
Merged
Merged
Merged
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
October 1, 2024 15:50
899b6fc to
e2e345d
Compare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
3 times, most recently
from
November 13, 2024 10:19
05c5e81 to
725f11d
Compare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
ArtificialOwl
force-pushed
the
feature/noid/wrapped-appconfig
branch
from
November 15, 2024 09:13
9f5b8d3 to
a9051c2
Compare
Member
Author
|
moved to #49399 |
Member
|
replaced by #49399 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
Config Lexiconis a list of config keys used by current app. Each entry also define the expected type for the config value, its lazyness/sensitivity.The loading is done by registering a
IConfigLexicon.Application.php
ConfigLexicon.php
Note: A description of the config key can be added as 3rd parameter of the
ConfigLexiconEntry. This information is not stored when running from a web process.store and retrieve config value
Once this is done:
any code trying to wrongly type config values will get an exception
set/get on config values set as lazy will work even if not specified in the process
default value can be overwritten
will returns
42If configured as
strict, setting an unlisted config values returns an exceptionAlso, setting a config key as deprecated will generate a level 1 log entry when the config key is used