From 63b32b57c612d0095ee450038e5a447202b2ff21 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 18 Jan 2024 16:29:57 +0100 Subject: [PATCH] Revert "match parameter names with AbstractBundle" This reverts commit 6896b7e44582dc9d986a8ed453c2dbcacf63e00a. --- bundles/extension.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bundles/extension.rst b/bundles/extension.rst index 861c7b60807..8b2928358ad 100644 --- a/bundles/extension.rst +++ b/bundles/extension.rst @@ -127,18 +127,18 @@ method:: class AcmeHelloBundle extends AbstractBundle { - public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void + public function loadExtension(array $config, ContainerConfigurator $containerConfigurator, ContainerBuilder $containerBuilder): void { // load an XML, PHP or Yaml file - $container->import('../config/services.xml'); + $containerConfigurator->import('../config/services.xml'); // you can also add or replace parameters and services - $container->parameters() + $containerConfigurator->parameters() ->set('acme_hello.phrase', $config['phrase']) ; if ($config['scream']) { - $container->services() + $containerConfigurator->services() ->get('acme_hello.printer') ->class(ScreamingPrinter::class) ;