Skip to content

Commit 7b591e0

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Discourage append config on prepend extension method
2 parents babae18 + dee9ccc commit 7b591e0

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
@@ -154,7 +154,7 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to
154154
Prepending Extension in the Bundle Class
155155
----------------------------------------
156156

157-
You can also append or prepend extension configuration directly in your
157+
You can also prepend extension configuration directly in your
158158
Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
159159
class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension`
160160
method::
@@ -171,14 +171,6 @@ method::
171171
$containerBuilder->prependExtensionConfig('framework', [
172172
'cache' => ['prefix_seed' => 'foo/bar'],
173173
]);
174-
175-
// append
176-
$containerConfigurator->extension('framework', [
177-
'cache' => ['prefix_seed' => 'foo/bar'],
178-
]);
179-
180-
// append from file
181-
$containerConfigurator->import('../config/packages/cache.php');
182174
}
183175
}
184176

0 commit comments

Comments
 (0)