8000 Discourage append config on prepend extension method · symfony/symfony-docs@4e82adb · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e82adb

Browse files
committed
Discourage append config on prepend extension method
1 parent eab368c commit 4e82adb

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
@@ -158,7 +158,7 @@ Prepending Extension in the Bundle Class
158158

159159
The ``AbstractBundle`` class was introduced in Symfony 6.1.
160160

161-
You can also append or prepend extension configuration directly in your
161+
You can also prepend extension configuration directly in your
162162
Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
163163
class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension`
164164
method::
@@ -175,14 +175,6 @@ method::
175175
$containerBuilder->prependExtensionConfig('framework', [
176176
'cache' => ['prefix_seed' => 'foo/bar'],
177177
]);
178-
179-
// append
180-
$containerConfigurator->extension('framework', [
181-
'cache' => ['prefix_seed' => 'foo/bar'],
182-
]);
183-
184-
// append from file
185-
$containerConfigurator->import('../config/packages/cache.php');
186178
}
187179
}
188180

0 commit comments

Comments
 (0)
0