Skip to content

Commit

Permalink
Switch to afterResolving when registering service provider (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoGibbons authored Sep 12, 2020
1 parent a2fd35b commit 7843a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelMailCssInlinerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function register()
return new CssInlinerPlugin($app['config']->get('css-inliner'));
});

$this->app->extend('mail.manager', function (MailManager $mailManager) {
$this->app->afterResolving('mail.manager', function (MailManager $mailManager) {
$mailManager->getSwiftMailer()->registerPlugin($this->app->make(CssInlinerPlugin::class));
return $mailManager;
});
Expand Down

0 comments on commit 7843a62

Please sign in to comment.