File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -171,13 +171,22 @@ method::
171
171
$containerBuilder->prependExtensionConfig('framework', [
172
172
'cache' => ['prefix_seed' => 'foo/bar'],
173
173
]);
174
+
175
+ // prepend config from a file
176
+ $containerConfigurator->import('../config/packages/cache.php');
174
177
}
175
178
}
176
179
177
180
.. note ::
178
181
179
182
The ``prependExtension() `` method, like ``prepend() ``, is called only at compile time.
180
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
+
181
190
Alternatively, you can use the ``prepend `` parameter of the
182
191
:method: `Symfony\\ Component\\ DependencyInjection\\ Loader\\ Configurator\\ ContainerConfigurator::extension `
183
192
method::
You can’t perform that action at this time.
0 commit comments