From 406c95c73d3367b40e067a1ced9d537bef6eeb8a Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Sun, 12 Sep 2021 14:20:11 +0200 Subject: [PATCH 1/2] Update docblocks from Swift Mailer to Symfony Mailer --- src/Illuminate/Mail/MailManager.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 61fa39d216aa..024840e98493 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -219,10 +219,10 @@ protected function createSendmailTransport(array $config) } /** - * Create an instance of the Amazon SES Swift Transport driver. + * Create an instance of the Symfony Amazon SES Transport driver. * * @param array $config - * @return \Illuminate\Mail\Transport\SesTransport + * @return \Symfony\Component\Mailer\Transport\TransportInterface */ protected function createSesTransport(array $config) { @@ -257,7 +257,7 @@ protected function createMailTransport() } /** - * Create an instance of the Mailgun Swift Transport driver. + * Create an instance of the Symfony Mailgun Transport driver. * * @param array $config * @return \Symfony\Component\Mailer\Transport\TransportInterface @@ -279,10 +279,10 @@ protected function createMailgunTransport(array $config) } /** - * Create an instance of the Postmark Swift Transport driver. + * Create an instance of the Symfony Postmark Transport driver. * * @param array $config - * @return \Swift_Transport + * @return \Symfony\Component\Mailer\Transport\TransportInterface */ protected function createPostmarkTransport(array $config) { From 2e2d392791a739f4154a4812d9b97dce3d63343f Mon Sep 17 00:00:00 2001 From: Julius Kiekbusch Date: Sun, 12 Sep 2021 14:26:06 +0200 Subject: [PATCH 2/2] Make TransportInterface more specific --- src/Illuminate/Mail/MailManager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 024840e98493..510b49d1a12c 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -222,7 +222,7 @@ protected function createSendmailTransport(array $config) * Create an instance of the Symfony Amazon SES Transport driver. * * @param array $config - * @return \Symfony\Component\Mailer\Transport\TransportInterface + * @return \Symfony\Component\Mailer\Bridge\Amazon\Transport\SesApiAsyncAwsTransport */ protected function createSesTransport(array $config) { @@ -260,7 +260,7 @@ protected function createMailTransport() * Create an instance of the Symfony Mailgun Transport driver. * * @param array $config - * @return \Symfony\Component\Mailer\Transport\TransportInterface + * @return \Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunApiTransport */ protected function createMailgunTransport(array $config) { @@ -282,7 +282,7 @@ protected function createMailgunTransport(array $config) * Create an instance of the Symfony Postmark Transport driver. * * @param array $config - * @return \Symfony\Component\Mailer\Transport\TransportInterface + * @return \Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkApiTransport */ protected function createPostmarkTransport(array $config) {