Skip to content

Commit 9a65a6c

Browse files
committed
bug #18240 [DependencyInjection] Fix XML tag array attribute example (MatTheCat)
This PR was merged into the 6.2 branch. Discussion ---------- [DependencyInjection] Fix XML tag array attribute example Fixes #17932 (and closes #17395) Spotted in symfony/symfony#50081 (comment) The syntax is a bit awkward but it is how it works for now. Commits ------- 7ccec46 Fix XML tag array attribute example
2 parents 3ece010 + 7ccec46 commit 9a65a6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

service_container/tags.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,10 @@ To answer this, change the service declaration:
481481
482482
<service id="MailerSendmailTransport">
483483
<tag name="app.mail_transport">
484-
<attribute>sendmail</attribute>
485-
<attribute>anotherAlias</attribute>
484+
<attribute name="alias">
485+
<attribute name="0">sendmail</attribute>
486+
<attribute name="1">anotherAlias</attribute>
487+
</attribute>
486488
</tag>
487489
</service>
488490
</services>

0 commit comments

Comments
 (0)