-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Config] Note about bundle priority for PrependExtensionInterface #6920
Conversation
More than one bundle using PrependExtensionInterface | ||
---------------------------------------------------- | ||
|
||
When there is more than one bundle prepending the same extension and defining the same key, the bundle that is registered **first** will take priority and next bundles won't override this specific config setting. |
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.
Minor re-wording and line breaks:
If there is more than one bundle that prepends the same extension and defines
the same key, the bundle that is registered **first** will take priority: next
bundles won't override this specific config setting.
@@ -131,3 +131,8 @@ The above would be the equivalent of writing the following into the | |||
// ... | |||
'use_acme_goodbye' => false, | |||
)); | |||
|
|||
More than one bundle using PrependExtensionInterface | |||
---------------------------------------------------- |
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.
bundle -> Bundle
I added some rewording, but you're correct, and I like this small note at the end: 👍 Status: Reviewed |
…nterface (wodor) This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6920). Discussion ---------- [Config] Note about bundle priority for PrependExtensionInterface I've stumbled upon problem that my config setting wasn't prepended using PrependExtensionInterface. It was because I didn’t know that first bundle takes priority when it comes to overriding exactly the same config key. Commits ------- 34d8d48 Note about bundle priority for PrependExtensionInterface
Thank you @wodor! I have merged your changes into the |
* 2.7: (24 commits) [#6934] add remember me response listener Update events.rst [#6920] some tweaks after review Note about bundle priority for PrependExtensionInterface [#6905] rewrite code example to cover the setter Change example of ignoring dependencies for yaml [FormComponent]Fix wrong mention in side note Article about logout. Clarify by_reference use Use Terminal lexer for console examples Update entity_provider.rst fixing $formatLevelMap array values Fix subject/verb agreement Fixed directory name type fix link role syntax Update voters.rst Improved the title of Validation Groups article to make it easier to find it Minor reword Fix minor typo in security chapter How to Build a Traditional Login Form Update composer.rst ...
* 2.8: (32 commits) [#6989] some minor tweaks Added paths options in Framework::translator configuration [#6934] add remember me response listener Update events.rst [#6897] some tweaks after review Update voters.rst [#6920] some tweaks after review Note about bundle priority for PrependExtensionInterface [#6926] some tweaks after review [#6905] rewrite code example to cover the setter Change example of ignoring dependencies for yaml [FormComponent]Fix wrong mention in side note Article about logout. Clarify by_reference use Use Terminal lexer for console examples Update entity_provider.rst fixing $formatLevelMap array values Fix subject/verb agreement Fixed directory name type fix link role syntax ...
* 3.1: (50 commits) Update heroku.rst [#6989] some minor tweaks Added paths options in Framework::translator configuration [#6934] add remember me response listener Update events.rst [#6897] some tweaks after review Update voters.rst [#6920] some tweaks after review Note about bundle priority for PrependExtensionInterface [#6926] some tweaks after review [#6905] rewrite code example to cover the setter Change example of ignoring dependencies for yaml [FormComponent]Fix wrong mention in side note Article about logout. Clarify by_reference use Use Terminal lexer for console examples Update entity_provider.rst fixing $formatLevelMap array values Use the standard cache and logs dir for the micro kernel example Fix subject/verb agreement ...
I've stumbled upon problem that my config setting wasn't prepended using PrependExtensionInterface. It was because I didn’t know that first bundle takes priority when it comes to overriding exactly the same config key.