Skip to content

Commit

Permalink
Discourage append config on prepend extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Apr 3, 2024
1 parent eab368c commit 4e82adb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bundles/prepend_extension.rst
Expand Up @@ -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::
Expand All @@ -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');
}
}

Expand Down

0 comments on commit 4e82adb

Please sign in to comment.