-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[DIC] Better handling of enableable configurations #6852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
728dd93
868dc27
2c2521a
ccbabff
1fb6ede
30167b3
4979960
f714095
ea94ab0
1f540c0
c274274
58f221a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ CHANGELOG | |
----- | ||
|
||
* [BC BREAK] changed ArrayNodeDefinition::canBeEnabled() and ArrayNodeDefinition::canBeDisabled() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, this is not a BC break as those methods have been introduced in 2.2 (see #5688). So, this can be replaced with something like "added ArrayNodeDefinition::canBeEnabled() and ArrayNodeDefinition::canBeDisabled() to simplify optional configuration management" |
||
to set the defaults when the node is not set - the methods were ineffective | ||
to add the defaults when the node is not set - the methods were ineffective | ||
if ArrayNodeDefinition::setDefaultsIfNotSet() was not explicitely called. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small typo here add not set. Regarding the change itself, it seems fine to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review, I'll update tomorrow |
||
* added a `normalizeKeys()` method for array nodes (to avoid key normalization) | ||
* added numerical type handling for config definitions | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this doesn't harmonize with what is done in line 254:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tobion could you submit a PR please ?