@@ -63,10 +63,10 @@ a reference of the old one as ``app.decorating_mailer.inner``:
63
63
# ...
64
64
65
65
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
70
70
71
71
.. code-block :: xml
72
72
@@ -130,7 +130,7 @@ convention, the old ``app.mailer`` service is renamed to
130
130
.. code-block :: yaml
131
131
132
132
services :
133
- app.mailer :
133
+ app.decorating_mailer :
134
134
# ...
135
135
decoration_inner_name : app.decorating_mailer.wooz
136
136
arguments : ['@app.decorating_mailer.wooz']
@@ -146,7 +146,11 @@ convention, the old ``app.mailer`` service is renamed to
146
146
<!-- ... -->
147
147
148
148
<service
149
+ id =" app.decorating_mailer"
150
+ class =" AppBundle\DecoratingMailer"
151
+ decorates =" app.mailer"
149
152
decoration-inner-name =" app.decorating_mailer.wooz"
153
+ public =" false"
150
154
>
151
155
<argument type =" service" id =" app.decorating_mailer.wooz" />
152
156
</service >
@@ -160,7 +164,7 @@ convention, the old ``app.mailer`` service is renamed to
160
164
use Symfony\Component\DependencyInjection\Reference;
161
165
162
166
$container->register('app.decorating_mailer', DecoratingMailer::class)
163
- ->setDecoratedService('foo ', 'app.decorating_mailer.wooz')
167
+ ->setDecoratedService('app.mailer ', 'app.decorating_mailer.wooz')
164
168
->addArgument(new Reference('app.decorating_mailer.wooz'))
165
169
// ...
166
170
;
0 commit comments