Skip to content

Commit 80beac7

Browse files
committed
proper class for Laravel 9 mailer
1 parent a2f3571 commit 80beac7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/CreatesMailers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function createLaravel9Mailer($app)
8282
// Once we have create the mailer instance, we will set a container instance
8383
// on the mailer. This allows us to resolve mailer classes via containers
8484
// for maximum testability on said classes instead of passing Closures.
85-
$mailer = new Laravel7Mailer(
85+
$mailer = new Laravel9Mailer(
8686
'smtp',
8787
$app['view'],
8888
$symfonyTransport,

src/Laravel9Mailer.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace BeyondCode\HeloLaravel;
4+
5+
use Illuminate\Contracts\Mail\Factory as MailFactory;
6+
use Illuminate\Contracts\Mail\Mailer as MailerContract;
7+
8+
class Laravel9Mailer extends Laravel7Mailer implements MailerContract, MailFactory
9+
{
10+
}

0 commit comments

Comments
 (0)