Skip to content

Commit 3d5dd16

Browse files
committed
minor #6920 [Config] Note about bundle priority for PrependExtensionInterface (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
2 parents 430f932 + 34d8d48 commit 3d5dd16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bundles/prepend_extension.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,8 @@ The above would be the equivalent of writing the following into the
131131
// ...
132132
'use_acme_goodbye' => false,
133133
));
134+
135+
More than one bundle using PrependExtensionInterface
136+
----------------------------------------------------
137+
138+
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.

0 commit comments

Comments
 (0)