Skip to content

Commit 2deff6d

Browse files
committed
minor #19739 [DependencyInjection] Discourage appending config on prepend extension method (yceruto)
This PR was merged into the 6.4 branch. Discussion ---------- [DependencyInjection] Discourage appending config on prepend extension method Related to symfony/symfony#52789 and #19738 Commits ------- 4e82adb Discourage append config on prepend extension method
2 parents 28eceb8 + 4e82adb commit 2deff6d

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)