From 778ffdf3f0815c5f98a42e745c079f13646ab452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Sun, 5 May 2024 23:54:24 +0200 Subject: [PATCH] [Bundle] Fix Bundle configuration root key It should be acme_social instead of acme.social --- bundles/configuration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/configuration.rst b/bundles/configuration.rst index 48b91c1713a..4efba904b0e 100644 --- a/bundles/configuration.rst +++ b/bundles/configuration.rst @@ -98,7 +98,7 @@ class, you can add all the logic related to processing the configuration in that // use it directly to configure the service container (when defining an // extension class, you also have to do this merging and processing) $containerConfigurator->services() - ->get('acme.social.twitter_client') + ->get('acme_social.twitter_client') ->arg(0, $config['twitter']['client_id']) ->arg(1, $config['twitter']['client_secret']) ; @@ -347,7 +347,7 @@ For example, imagine your bundle has the following example config: https://symfony.com/schema/dic/services/services-1.0.xsd" > - + @@ -370,7 +370,7 @@ In your extension, you can load this and dynamically set its arguments:: $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); - $definition = $container->getDefinition('acme.social.twitter_client'); + $definition = $container->getDefinition('acme_social.twitter_client'); $definition->replaceArgument(0, $config['twitter']['client_id']); $definition->replaceArgument(1, $config['twitter']['client_secret']); }