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 @@ -465,7 +465,7 @@ To answer this, change the service declaration:
465
465
466
466
MailerSendmailTransport :
467
467
tags :
468
- - { name: 'app.mail_transport', alias: 'sendmail' }
468
+ - { name: 'app.mail_transport', alias: [ 'sendmail', 'anotherAlias'] }
469
469
470
470
.. code-block :: xml
471
471
@@ -484,7 +484,10 @@ To answer this, change the service declaration:
484
484
</service >
485
485
486
486
<service id =" MailerSendmailTransport" >
487
- <tag name =" app.mail_transport" alias =" sendmail" />
487
+ <tag name =" app.mail_transport" >
488
+ <attribute >sendmail</attribute >
489
+ <attribute >anotherAlias</attribute >
490
+ </tag >
488
491
</service >
489
492
</services >
490
493
</container >
@@ -504,10 +507,14 @@ To answer this, change the service declaration:
504
507
;
505
508
506
509
$services->set(\MailerSendmailTransport::class)
507
- ->tag('app.mail_transport', ['alias' => 'sendmail'])
510
+ ->tag('app.mail_transport', ['alias' => [ 'sendmail', 'anotherAlias'] ])
508
511
;
509
512
};
510
513
514
+ .. versionadded :: 6.2
515
+
516
+ Support for attributes as array was introduced in Symfony 6.2.
517
+
511
518
.. tip ::
512
519
513
520
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