Skip to content

Commit f29795d

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Fix group handler name [Bundle] Fix Bundle configuration root key
2 parents e0535ef + d8b1210 commit f29795d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bundles/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class, you can add all the logic related to processing the configuration in that
9494
// use it directly to configure the service container (when defining an
9595
// extension class, you also have to do this merging and processing)
9696
$containerConfigurator->services()
97-
->get('acme.social.twitter_client')
97+
->get('acme_social.twitter_client')
9898
->arg(0, $config['twitter']['client_id'])
9999
->arg(1, $config['twitter']['client_secret'])
100100
;
@@ -343,7 +343,7 @@ For example, imagine your bundle has the following example config:
343343
https://symfony.com/schema/dic/services/services-1.0.xsd"
344344
>
345345
<services>
346-
<service id="acme.social.twitter_client" class="Acme\SocialBundle\TwitterClient">
346+
<service id="acme_social.twitter_client" class="Acme\SocialBundle\TwitterClient">
347347
<argument></argument> <!-- will be filled in with client_id dynamically -->
348348
<argument></argument> <!-- will be filled in with client_secret dynamically -->
349349
</service>
@@ -366,7 +366,7 @@ In your extension, you can load this and dynamically set its arguments::
366366
$configuration = new Configuration();
367367
$config = $this->processConfiguration($configuration, $configs);
368368

369-
$definition = $container->getDefinition('acme.social.twitter_client');
369+
$definition = $container->getDefinition('acme_social.twitter_client');
370370
$definition->replaceArgument(0, $config['twitter']['client_id']);
371371
$definition->replaceArgument(1, $config['twitter']['client_secret']);
372372
}

logging/monolog_email.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ get logged on the server as well as the emails being sent:
292292
->handler('grouped')
293293
;
294294
295-
$monolog->handler('group')
295+
$monolog->handler('grouped')
296296
->type('group')
297297
->members(['streamed', 'deduplicated'])
298298
;
@@ -322,7 +322,7 @@ get logged on the server as well as the emails being sent:
322322
;
323323
};
324324
325-
This uses the ``group`` handler to send the messages to the two
325+
This uses the ``grouped`` handler to send the messages to the two
326326
group members, the ``deduplicated`` and the ``stream`` handlers. The messages will
327327
now be both written to the log file and emailed.
328328

0 commit comments

Comments
 (0)