From 4e82adba79c82e9b65bb7b86e21b19bc3075f18b Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 3 Apr 2024 19:23:02 -0400 Subject: [PATCH] Discourage append config on prepend extension method --- bundles/prepend_extension.rst | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bundles/prepend_extension.rst b/bundles/prepend_extension.rst index fcad249124e..afde2595e98 100644 --- a/bundles/prepend_extension.rst +++ b/bundles/prepend_extension.rst @@ -158,7 +158,7 @@ Prepending Extension in the Bundle Class The ``AbstractBundle`` class was introduced in Symfony 6.1. -You can also append or prepend extension configuration directly in your +You can also prepend extension configuration directly in your Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension` method:: @@ -175,14 +175,6 @@ method:: $containerBuilder->prependExtensionConfig('framework', [ 'cache' => ['prefix_seed' => 'foo/bar'], ]); - - // append - $containerConfigurator->extension('framework', [ - 'cache' => ['prefix_seed' => 'foo/bar'], - ]); - - // append from file - $containerConfigurator->import('../config/packages/cache.php'); } }