@@ -154,7 +154,7 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to
154
154
Prepending Extension in the Bundle Class
155
155
----------------------------------------
156
156
157
- You can also append or prepend extension configuration directly in your
157
+ You can also prepend extension configuration directly in your
158
158
Bundle class if you extend from the :class: `Symfony\\ Component\\ HttpKernel\\ Bundle\\ AbstractBundle `
159
159
class and define the :method: `Symfony\\ Component\\ HttpKernel\\ Bundle\\ AbstractBundle::prependExtension `
160
160
method::
@@ -172,12 +172,7 @@ method::
172
172
'cache' => ['prefix_seed' => 'foo/bar'],
173
173
]);
174
174
175
- // append
176
- $containerConfigurator->extension('framework', [
177
- 'cache' => ['prefix_seed' => 'foo/bar'],
178
- ]);
179
-
180
- // append from file
175
+ // prepend config from a file
181
176
$containerConfigurator->import('../config/packages/cache.php');
182
177
}
183
178
}
@@ -186,6 +181,12 @@ method::
186
181
187
182
The ``prependExtension() `` method, like ``prepend() ``, is called only at compile time.
188
183
184
+ .. deprecated :: 7.1
185
+
186
+ The :method: `Symfony\\ Component\\ DependencyInjection\\ Loader\\ Configurator\\ ContainerConfigurator::import `
187
+ method behavior was modified in Symfony 7.1 to prepend config instead of appending. This behavior change only
188
+ affects to the ``prependExtension() `` method.
189
+
189
190
Alternatively, you can use the ``prepend `` parameter of the
190
191
:method: `Symfony\\ Component\\ DependencyInjection\\ Loader\\ Configurator\\ ContainerConfigurator::extension `
191
192
method::
0 commit comments