Skip to content

Commit

Permalink
Merge pull request #44 from octoxan/master
Browse files Browse the repository at this point in the history
Fix Laravel 10 support with xdebug installed
  • Loading branch information
mpociot authored Dec 15, 2023
2 parents c2b964b + 11dfffe commit b2c23ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CreatesMailers.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ protected function createLaravel9Mailer($app)
$config = $this->getConfig($defaultDriver);

// We get Symfony Transport from Laravel 9 mailer
$symfonyTransport = $app['mail.manager']->getSymfonyTransport();
if (version_compare(app()->version(), '10.0.0', '<')) {
$symfonyTransport = $app['mail.manager']->getSymfonyTransport();
} else {
$symfonyTransport = $app['mailer']->getSymfonyTransport();
}

// 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
Expand Down

0 comments on commit b2c23ee

Please sign in to comment.