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:
  Fix group handler name
  [Bundle] Fix Bundle configuration root key
  • Loading branch information
javiereguiluz committed May 6, 2024
2 parents 4d3a14c + fae3142 commit d8b1210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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'])
;
Expand Down Expand Up @@ -343,7 +343,7 @@ For example, imagine your bundle has the following example config:
https://symfony.com/schema/dic/services/services-1.0.xsd"
>
<services>
<service id="acme.social.twitter_client" class="Acme\SocialBundle\TwitterClient">
<service id="acme_social.twitter_client" class="Acme\SocialBundle\TwitterClient">
<argument></argument> <!-- will be filled in with client_id dynamically -->
<argument></argument> <!-- will be filled in with client_secret dynamically -->
</service>
Expand All @@ -366,7 +366,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']);
}
Expand Down
4 changes: 2 additions & 2 deletions logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ get logged on the server as well as the emails being sent:
->handler('grouped')
;
$monolog->handler('group')
$monolog->handler('grouped')
->type('group')
->members(['streamed', 'deduplicated'])
;
Expand Down Expand Up @@ -322,7 +322,7 @@ get logged on the server as well as the emails being sent:
;
};
This uses the ``group`` handler to send the messages to the two
This uses the ``grouped`` handler to send the messages to the two
group members, the ``deduplicated`` and the ``stream`` handlers. The messages will
now be both written to the log file and emailed.

Expand Down

0 comments on commit d8b1210

Please sign in to comment.