Skip to content

Commit 2c2bb40

Browse files
committed
Fix for Laravel 5.4 compatibility.
1 parent dda0f7d commit 2c2bb40

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/LithiumDev/ExceptionMailer/ExceptionMailerServiceProvider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ public function register()
3939
__DIR__ . '/../../config/config.php', 'laravel-exception-mailer.config'
4040
);
4141

42-
$this->app['ExceptionMailer'] = $this->app->share(function ($app)
43-
{
44-
$config = $app['config']['laravel-exception-mailer']['config'];
45-
$eMailer = new ExceptionMailer($config);
46-
47-
if (in_array($app->environment(), $config['notify_environment']))
48-
{
49-
$eMailer->setEnvironment($app->environment());
50-
}
51-
52-
return $eMailer;
53-
});
5442
$this->app->singleton('ExceptionMailer',
5543
function ($app)
5644
{

0 commit comments

Comments
 (0)