We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47bda31 commit 3d241a5Copy full SHA for 3d241a5
service_container/service_decoration.rst
@@ -40,11 +40,11 @@ the original service is lost:
40
41
.. code-block:: php
42
43
- $container->register('mailer', 'AppBundle\Mailer');
+ $container->register('app.mailer', 'AppBundle\Mailer');
44
45
// this replaces the old app.mailer definition with the new one, the
46
// old definition is lost
47
- $container->register('mailer', 'AppBundle\DecoratingMailer');
+ $container->register('app.mailer', 'AppBundle\DecoratingMailer');
48
49
Most of the time, that's exactly what you want to do. But sometimes,
50
you might want to decorate the old one instead. In this case, the
0 commit comments