File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -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
+ .. versionadded :: 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 is
188
+ valid only in the ``prependExtension() `` scope.
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::
You can’t perform that action at this time.
0 commit comments