Skip to content

Commit b5c028b

Browse files
committed
Discourage append config on prepend extension method
1 parent 9ce082c commit b5c028b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bundles/prepend_extension.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Prepending Extension in the Bundle Class
162162

163163
The ``AbstractBundle`` class was introduced in Symfony 6.1.
164164

165-
You can also append or prepend extension configuration directly in your
165+
You can also prepend extension configuration directly in your
166166
Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
167167
class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension`
168168
method::
@@ -179,14 +179,6 @@ method::
179179
$containerBuilder->prependExtensionConfig('framework', [
180180
'cache' => ['prefix_seed' => 'foo/bar'],
181181
]);
182-
183-
// append
184-
$containerConfigurator->extension('framework', [
185-
'cache' => ['prefix_seed' => 'foo/bar'],
186-
]);
187-
188-
// append from file
189-
$containerConfigurator->import('../config/packages/cache.php');
190182
}
191183
}
192184

0 commit comments

Comments
 (0)