File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ To answer this, change the service declaration:
424
424
425
425
MailerSendmailTransport :
426
426
tags :
427
- - { name: 'app.mail_transport', alias: 'sendmail' }
427
+ - { name: 'app.mail_transport', alias: [ 'sendmail', 'anotherAlias'] }
428
428
429
429
.. code-block :: xml
430
430
@@ -443,7 +443,10 @@ To answer this, change the service declaration:
443
443
</service >
444
444
445
445
<service id =" MailerSendmailTransport" >
446
- <tag name =" app.mail_transport" alias =" sendmail" />
446
+ <tag name =" app.mail_transport" >
447
+ <attribute >sendmail</attribute >
448
+ <attribute >anotherAlias</attribute >
449
+ </tag >
447
450
</service >
448
451
</services >
449
452
</container >
@@ -463,10 +466,14 @@ To answer this, change the service declaration:
463
466
;
464
467
465
468
$services->set(\MailerSendmailTransport::class)
466
- ->tag('app.mail_transport', ['alias' => 'sendmail'])
469
+ ->tag('app.mail_transport', ['alias' => [ 'sendmail', 'anotherAlias'] ])
467
470
;
468
471
};
469
472
473
+ .. versionadded :: 6.2
474
+
475
+ Support for attributes as array was introduced in Symfony 6.2.
476
+
470
477
.. tip ::
471
478
472
479
In YAML format, you may provide the tag as a simple string as long as
You can’t perform that action at this time.
0 commit comments