Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 16, 2018
1 parent c1b3845 commit 5eee285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Mail/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public function registerSwiftMailer()
// mailer instance, passing in the transport instances, which allows us to
// override this transporter instances during app start-up if necessary.
$this->app->singleton('swift.mailer', function ($app) {
if ($mailDomain = $app->make('config')->get('mail.domain')) {
if ($domain = $app->make('config')->get('mail.domain')) {
Swift_DependencyContainer::getInstance()
->register('mime.idgenerator.idright')
->asValue($mailDomain);
->asValue($domain);
}

return new Swift_Mailer($app['swift.transport']->driver());
Expand Down

0 comments on commit 5eee285

Please sign in to comment.