Skip to content

Commit 1bc6338

Browse files
committed
Updating prepend extension capabilities
1 parent 6b3d171 commit 1bc6338

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

bundles/prepend_extension.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,7 @@ method::
172172
'cache' => ['prefix_seed' => 'foo/bar'],
173173
]);
174174

175-
// append
176-
$containerConfigurator->extension('framework', [
177-
'cache' => ['prefix_seed' => 'foo/bar'],
178-
]);
179-
180-
// append from file
175+
// prepend config from a file
181176
$containerConfigurator->import('../config/packages/cache.php');
182177
}
183178
}
@@ -186,6 +181,12 @@ method::
186181

187182
The ``prependExtension()`` method, like ``prepend()``, is called only at compile time.
188183

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+
189190
Alternatively, you can use the ``prepend`` parameter of the
190191
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
191192
method::

0 commit comments

Comments
 (0)