Skip to content

Commit 93668de

Browse files
authored
Update service id of the MailerInterface
The service id of the MailerInterface was changed in symfony/symfony#31854 to avoid an conflict with SwiftMailer
1 parent c9dc31a commit 93668de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Creating & Sending Messages
9393
---------------------------
9494

9595
To send an email, autowire the mailer using
96-
:class:`Symfony\\Component\\Mailer\\MailerInterface` (service id ``mailer``)
96+
:class:`Symfony\\Component\\Mailer\\MailerInterface` (service id ``mailer.mailer``)
9797
and create an :class:`Symfony\\Component\\Mime\\Email` object::
9898

9999
// src/Controller/MailerController.php

0 commit comments

Comments
 (0)