Skip to content

Commit 2f7cf24

Browse files
nunomadurotaylorotwell
authored andcommitted
[5.4] Removes unwanted dependency of illuminate/mail (#18290)
* Fixes phpdocs * Removes usage of Foundation package helper * Updates way of access to app instance
1 parent a4fe12a commit 2f7cf24

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Illuminate/Mail/MailServiceProvider.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ protected function registerMarkdownRenderer()
121121
], 'laravel-mail');
122122
}
123123

124-
$this->app->singleton(Markdown::class, function () {
125-
return new Markdown($this->app->make('view'), [
126-
'theme' => config('mail.markdown.theme', 'default'),
127-
'paths' => config('mail.markdown.paths', []),
124+
$this->app->singleton(Markdown::class, function ($app) {
125+
$config = $app->make('config');
126+
127+
return new Markdown($app->make('view'), [
128+
'theme' => $config->get('mail.markdown.theme', 'default'),
129+
'paths' => $config->get('mail.markdown.paths', []),
128130
]);
129131
});
130132
}

0 commit comments

Comments
 (0)