@@ -17,7 +17,7 @@ example:
1717 services :
1818 App\Twig\AppExtension :
1919 public : false
20- tags : [twig.extension]
20+ tags : [' twig.extension' ]
2121
2222 .. code-block :: xml
2323
@@ -162,10 +162,10 @@ For example, you may add the following transports as services:
162162 services :
163163 Swift_SmtpTransport :
164164 arguments : ['%mailer_host%']
165- tags : [app.mail_transport]
165+ tags : [' app.mail_transport' ]
166166
167167 Swift_SendmailTransport :
168- tags : [app.mail_transport]
168+ tags : [' app.mail_transport' ]
169169
170170 .. code-block :: xml
171171
@@ -317,11 +317,11 @@ To answer this, change the service declaration:
317317 Swift_SmtpTransport :
318318 arguments : ['%mailer_host%']
319319 tags :
320- - { name: app.mail_transport, alias: smtp }
320+ - { name: ' app.mail_transport' , alias: ' smtp' }
321321
322322 Swift_SendmailTransport :
323323 tags :
324- - { name: app.mail_transport, alias: sendmail }
324+ - { name: ' app.mail_transport' , alias: ' sendmail' }
325325
326326 .. code-block :: xml
327327
@@ -368,13 +368,13 @@ To answer this, change the service declaration:
368368 # Compact syntax
369369 Swift_SendmailTransport :
370370 class : \Swift_SendmailTransport
371- tags : [app.mail_transport]
371+ tags : [' app.mail_transport' ]
372372
373373 # Verbose syntax
374374 Swift_SendmailTransport :
375375 class : \Swift_SendmailTransport
376376 tags :
377- - { name: app.mail_transport }
377+ - { name: ' app.mail_transport' }
378378
379379 Notice that you've added a generic ``alias `` key to the tag. To actually
380380use this, update the compiler::
@@ -424,10 +424,10 @@ first constructor argument to the ``App\HandlerCollection`` service:
424424 # config/services.yaml
425425 services :
426426 App\Handler\One :
427- tags : [app.handler]
427+ tags : [' app.handler' ]
428428
429429 App\Handler\Two :
430- tags : [app.handler]
430+ tags : [' app.handler' ]
431431
432432 App\HandlerCollection :
433433 # inject all services tagged with app.handler as first argument
@@ -500,7 +500,7 @@ application handlers.
500500 services :
501501 App\Handler\One :
502502 tags :
503- - { name: app.handler, priority: 20 }
503+ - { name: ' app.handler' , priority: 20 }
504504
505505 .. code-block :: xml
506506
0 commit comments