@@ -17,7 +17,7 @@ example:
17
17
services :
18
18
App\Twig\AppExtension :
19
19
public : false
20
- tags : [twig.extension]
20
+ tags : [' twig.extension' ]
21
21
22
22
.. code-block :: xml
23
23
@@ -162,10 +162,10 @@ For example, you may add the following transports as services:
162
162
services :
163
163
Swift_SmtpTransport :
164
164
arguments : ['%mailer_host%']
165
- tags : [app.mail_transport]
165
+ tags : [' app.mail_transport' ]
166
166
167
167
Swift_SendmailTransport :
168
- tags : [app.mail_transport]
168
+ tags : [' app.mail_transport' ]
169
169
170
170
.. code-block :: xml
171
171
@@ -317,11 +317,11 @@ To answer this, change the service declaration:
317
317
Swift_SmtpTransport :
318
318
arguments : ['%mailer_host%']
319
319
tags :
320
- - { name: app.mail_transport, alias: smtp }
320
+ - { name: ' app.mail_transport' , alias: ' smtp' }
321
321
322
322
Swift_SendmailTransport :
323
323
tags :
324
- - { name: app.mail_transport, alias: sendmail }
324
+ - { name: ' app.mail_transport' , alias: ' sendmail' }
325
325
326
326
.. code-block :: xml
327
327
@@ -368,13 +368,13 @@ To answer this, change the service declaration:
368
368
# Compact syntax
369
369
Swift_SendmailTransport :
370
370
class : \Swift_SendmailTransport
371
- tags : [app.mail_transport]
371
+ tags : [' app.mail_transport' ]
372
372
373
373
# Verbose syntax
374
374
Swift_SendmailTransport :
375
375
class : \Swift_SendmailTransport
376
376
tags :
377
- - { name: app.mail_transport }
377
+ - { name: ' app.mail_transport' }
378
378
379
379
Notice that you've added a generic ``alias `` key to the tag. To actually
380
380
use this, update the compiler::
@@ -424,10 +424,10 @@ first constructor argument to the ``App\HandlerCollection`` service:
424
424
# config/services.yaml
425
425
services :
426
426
App\Handler\One :
427
- tags : [app.handler]
427
+ tags : [' app.handler' ]
428
428
429
429
App\Handler\Two :
430
- tags : [app.handler]
430
+ tags : [' app.handler' ]
431
431
432
432
App\HandlerCollection :
433
433
# inject all services tagged with app.handler as first argument
@@ -500,7 +500,7 @@ application handlers.
500
500
services :
501
501
App\Handler\One :
502
502
tags :
503
- - { name: app.handler, priority: 20 }
503
+ - { name: ' app.handler' , priority: 20 }
504
504
505
505
.. code-block :: xml
506
506
0 commit comments