@@ -12,11 +12,10 @@ users to choose to remove functionality they are not using. Creating multiple
1212bundles has the drawback that configuration becomes more tedious and settings
1313often need to be repeated for various bundles.
1414
15- It is possible to remove the disadvantage of the multiple bundle approach
16- by enabling a single Extension to prepend the settings for any bundle.
17- It can use the settings defined in the ``app/config/config.yml ``
18- to prepend settings just as if they had been written explicitly by
19- the user in the application configuration.
15+ It is possible to remove the disadvantage of the multiple bundle approach by
16+ enabling a single Extension to prepend the settings for any bundle. It can use
17+ the settings defined in the ``config/* `` files to prepend settings just as if
18+ they had been written explicitly by the user in the application configuration.
2019
2120For example, this could be used to configure the entity manager name to use in
2221multiple bundles. Or it can be used to enable an optional feature that depends
@@ -50,7 +49,7 @@ prepend settings to a bundle extension developers can use the
5049:method: `Symfony\\ Component\\ DependencyInjection\\ ContainerBuilder::prependExtensionConfig `
5150method on the :class: `Symfony\\ Component\\ DependencyInjection\\ ContainerBuilder `
5251instance. As this method only prepends settings, any other settings done explicitly
53- inside the ``app/ config/config.yml `` would override these prepended settings.
52+ inside the ``config/* `` files would override these prepended settings.
5453
5554The following example illustrates how to prepend
5655a configuration setting in multiple bundles as well as disable a flag in multiple bundles
@@ -73,7 +72,7 @@ in case a specific other bundle is not registered::
7372 // acme_something and acme_other
7473 //
7574 // note that if the user manually configured
76- // use_acme_goodbye to true in app/ config/config.yml
75+ // use_acme_goodbye to true in config/services.yaml
7776 // then the setting would in the end be true and not false
7877 $container->prependExtensionConfig($name, $config);
7978 break;
@@ -96,14 +95,15 @@ in case a specific other bundle is not registered::
9695 }
9796
9897The above would be the equivalent of writing the following into the
99- ``app/config/config.yml `` in case AcmeGoodbyeBundle is not registered and the
100- ``entity_manager_name `` setting for ``acme_hello `` is set to ``non_default ``:
98+ ``config/packages/acme_something.yaml `` in case AcmeGoodbyeBundle is not
99+ registered and the ``entity_manager_name `` setting for ``acme_hello `` is set to
100+ ``non_default ``:
101101
102102.. configuration-block ::
103103
104104 .. code-block :: yaml
105105
106- # app/ config/config.yml
106+ # config/packages/acme_something.yaml
107107 acme_something :
108108 # ...
109109 use_acme_goodbye : false
@@ -115,7 +115,7 @@ The above would be the equivalent of writing the following into the
115115
116116 .. code-block :: xml
117117
118- <!-- app/ config/config .xml -->
118+ <!-- config/packages/acme_something .xml -->
119119 <?xml version =" 1.0" encoding =" UTF-8" ?>
120120 <container xmlns =" http://symfony.com/schema/dic/services"
121121 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -134,7 +134,7 @@ The above would be the equivalent of writing the following into the
134134
135135 .. code-block :: php
136136
137- // app/ config/config .php
137+ // config/packages/acme_something .php
138138 $container->loadFromExtension('acme_something', array(
139139 // ...
140140 'use_acme_goodbye' => false,
0 commit comments