Skip to content

Commit b2c23ee

Browse files
authored
Merge pull request #44 from octoxan/master
Fix Laravel 10 support with xdebug installed
2 parents c2b964b + 11dfffe commit b2c23ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CreatesMailers.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ protected function createLaravel9Mailer($app)
6868
$config = $this->getConfig($defaultDriver);
6969

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

7377
// Once we have create the mailer instance, we will set a container instance
7478
// on the mailer. This allows us to resolve mailer classes via containers

0 commit comments

Comments
 (0)