Skip to content

Commit 970c486

Browse files
committed
[Mime] Remove NamedAddress
1 parent f9156e4 commit 970c486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Functional/Bundle/TestBundle/Controller/EmailController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use Symfony\Component\HttpFoundation\Response;
1515
use Symfony\Component\Mailer\MailerInterface;
16+
use Symfony\Component\Mime\Address;
1617
use Symfony\Component\Mime\Email;
17-
use Symfony\Component\Mime\NamedAddress;
1818

1919
class EmailController
2020
{
@@ -29,7 +29,7 @@ public function indexAction(MailerInterface $mailer)
2929
);
3030

3131
$mailer->send((new Email())->to('[email protected]', '[email protected]')->from('[email protected]')->subject('Foo')
32-
->addReplyTo(new NamedAddress('[email protected]', 'Fabien Potencier'))
32+
->addReplyTo(new Address('[email protected]', 'Fabien Potencier'))
3333
->addCc('[email protected]')
3434
->text('Bar!')
3535
->html('<p>Foo</p>')

0 commit comments

Comments
 (0)