@@ -17,7 +17,7 @@ example:
17
17
services :
18
18
AppBundle\Twig\AppExtension :
19
19
public : false
20
- tags : [twig.extension]
20
+ tags : [' twig.extension' ]
21
21
22
22
.. code-block :: xml
23
23
@@ -158,10 +158,10 @@ For example, you may add the following transports as services:
158
158
services :
159
159
Swift_SmtpTransport :
160
160
arguments : ['%mailer_host%']
161
- tags : [app.mail_transport]
161
+ tags : [' app.mail_transport' ]
162
162
163
163
Swift_SendmailTransport :
164
- tags : [app.mail_transport]
164
+ tags : [' app.mail_transport' ]
165
165
166
166
.. code-block :: xml
167
167
@@ -307,11 +307,11 @@ To answer this, change the service declaration:
307
307
Swift_SmtpTransport :
308
308
arguments : ['%mailer_host%']
309
309
tags :
310
- - { name: app.mail_transport, alias: smtp }
310
+ - { name: ' app.mail_transport' , alias: ' smtp' }
311
311
312
312
Swift_SendmailTransport :
313
313
tags :
314
- - { name: app.mail_transport, alias: sendmail }
314
+ - { name: ' app.mail_transport' , alias: ' sendmail' }
315
315
316
316
.. code-block :: xml
317
317
@@ -356,13 +356,13 @@ To answer this, change the service declaration:
356
356
# Compact syntax
357
357
Swift_SendmailTransport :
358
358
class : \Swift_SendmailTransport
359
- tags : [app.mail_transport]
359
+ tags : [' app.mail_transport' ]
360
360
361
361
# Verbose syntax
362
362
Swift_SendmailTransport :
363
363
class : \Swift_SendmailTransport
364
364
tags :
365
- - { name: app.mail_transport }
365
+ - { name: ' app.mail_transport' }
366
366
367
367
.. versionadded :: 3.3
368
368
Support for the compact tag notation in the YAML format was introduced
@@ -420,10 +420,10 @@ first constructor argument to the ``App\HandlerCollection`` service:
420
420
# app/config/services.yml
421
421
services :
422
422
AppBundle\Handler\One :
423
- tags : [app.handler]
423
+ tags : [' app.handler' ]
424
424
425
425
AppBundle\Handler\Two :
426
- tags : [app.handler]
426
+ tags : [' app.handler' ]
427
427
428
428
AppBundle\HandlerCollection :
429
429
# inject all services tagged with app.handler as first argument
@@ -496,7 +496,7 @@ application handlers.
496
496
services :
497
497
AppBundle\Handler\One :
498
498
tags :
499
- - { name: app.handler, priority: 20 }
499
+ - { name: ' app.handler' , priority: 20 }
500
500
501
501
.. code-block :: xml
502
502
0 commit comments