@@ -63,10 +63,10 @@ a reference of the old one as ``app.decorating_mailer.inner``:
6363 # ...
6464
6565 app.decorating_mailer :
66- class : AppBundle\DecoratingMailer
67- decorates : app.mailer
68- arguments : ['@app.decorating_mailer.inner']
69- public : false
66+ class : AppBundle\DecoratingMailer
67+ decorates : app.mailer
68+ arguments : ['@app.decorating_mailer.inner']
69+ public : false
7070
7171 .. code-block :: xml
7272
@@ -130,7 +130,7 @@ convention, the old ``app.mailer`` service is renamed to
130130 .. code-block :: yaml
131131
132132 services :
133- app.mailer :
133+ app.decorating_mailer :
134134 # ...
135135 decoration_inner_name : app.decorating_mailer.wooz
136136 arguments : ['@app.decorating_mailer.wooz']
@@ -146,7 +146,11 @@ convention, the old ``app.mailer`` service is renamed to
146146 <!-- ... -->
147147
148148 <service
149+ id =" app.decorating_mailer"
150+ class =" AppBundle\DecoratingMailer"
151+ decorates =" app.mailer"
149152 decoration-inner-name =" app.decorating_mailer.wooz"
153+ public =" false"
150154 >
151155 <argument type =" service" id =" app.decorating_mailer.wooz" />
152156 </service >
@@ -160,7 +164,7 @@ convention, the old ``app.mailer`` service is renamed to
160164 use Symfony\Component\DependencyInjection\Reference;
161165
162166 $container->register('app.decorating_mailer', DecoratingMailer::class)
163- ->setDecoratedService('foo ', 'app.decorating_mailer.wooz')
167+ ->setDecoratedService('app.mailer ', 'app.decorating_mailer.wooz')
164168 ->addArgument(new Reference('app.decorating_mailer.wooz'))
165169 // ...
166170 ;
0 commit comments