Skip to content

Commit 71ba2f0

Browse files
committed
minor #6842 Fixed service name (jeremyFreeAgent)
This PR was merged into the 2.7 branch. Discussion ---------- Fixed service name The name was `mailer` in the PHP configuration but it is `app.mailer` elsewhere. Commits ------- 3d241a5 Fixed service name
2 parents 10f5d95 + 3d241a5 commit 71ba2f0

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)