Skip to content

Commit 3d241a5

Browse files
Fixed service name
1 parent 47bda31 commit 3d241a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service_container/service_decoration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ the original service is lost:
4040
4141
.. code-block:: php
4242
43-
$container->register('mailer', 'AppBundle\Mailer');
43+
$container->register('app.mailer', 'AppBundle\Mailer');
4444
4545
// this replaces the old app.mailer definition with the new one, the
4646
// old definition is lost
47-
$container->register('mailer', 'AppBundle\DecoratingMailer');
47+
$container->register('app.mailer', 'AppBundle\DecoratingMailer');
4848
4949
Most of the time, that's exactly what you want to do. But sometimes,
5050
you might want to decorate the old one instead. In this case, the

0 commit comments

Comments
 (0)