Skip to content

Commit c567fa7

Browse files
authored
Reuse $this->app in service provider (#22)
1 parent dc77f81 commit c567fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelMsGraphMailServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function boot(): void
4141
throw_unless(filled($config['from']['address'] ?? []), ConfigurationMissing::fromAddress());
4242

4343
return new MicrosoftGraphTransport(
44-
app()->make(MicrosoftGraphApiService::class)
44+
$this->app->make(MicrosoftGraphApiService::class)
4545
);
4646
});
4747
}

0 commit comments

Comments
 (0)