Skip to content

Commit

Permalink
proper class for Laravel 9 mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
mechelon committed Feb 23, 2024
1 parent a2f3571 commit 80beac7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/CreatesMailers.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function createLaravel9Mailer($app)
// Once we have create the mailer instance, we will set a container instance
// on the mailer. This allows us to resolve mailer classes via containers
// for maximum testability on said classes instead of passing Closures.
$mailer = new Laravel7Mailer(
$mailer = new Laravel9Mailer(
'smtp',
$app['view'],
$symfonyTransport,
Expand Down
10 changes: 10 additions & 0 deletions src/Laravel9Mailer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace BeyondCode\HeloLaravel;

use Illuminate\Contracts\Mail\Factory as MailFactory;
use Illuminate\Contracts\Mail\Mailer as MailerContract;

class Laravel9Mailer extends Laravel7Mailer implements MailerContract, MailFactory
{
}

0 comments on commit 80beac7

Please sign in to comment.