Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  Discourage append config on prepend extension method
  • Loading branch information
javiereguiluz committed Apr 15, 2024
2 parents 1e25604 + 2deff6d commit dee9ccc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bundles/prepend_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to
Prepending Extension in the Bundle Class
----------------------------------------

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 @@ -171,14 +171,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 dee9ccc

Please sign in to comment.