We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7b591e0 commit25c5adfCopy full SHA for 25c5adf
bundles/prepend_extension.rst
@@ -171,13 +171,22 @@ method::
171
$containerBuilder->prependExtensionConfig('framework', [
172
'cache' => ['prefix_seed' => 'foo/bar'],
173
]);
174
+
175
+ // prepend config from a file
176
+ $containerConfigurator->import('../config/packages/cache.php');
177
}
178
179
180
..note::
181
182
The ``prependExtension()`` method, like ``prepend()``, is called only at compile time.
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
190
Alternatively, you can use the ``prepend`` parameter of the
191
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
192
method::