Skip to content

Commit c4754c6

Browse files
committed
Fixes test command
1 parent 9596b60 commit c4754c6

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/HeloLaravelServiceProvider.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function boot()
2323
$this->bootMailable();
2424

2525
if ($this->app->runningInConsole()) {
26-
View::addNamespace('helo', __DIR__.'/../resources/views');
26+
View::addNamespace('helo', __DIR__ . '/../resources/views');
2727
}
2828
}
2929

@@ -38,11 +38,11 @@ public function register()
3838
]);
3939

4040
$this->publishes([
41-
__DIR__.'/../config/helo.php' => base_path('config/helo.php'),
41+
__DIR__ . '/../config/helo.php' => base_path('config/helo.php'),
4242
], 'config');
4343
}
4444

45-
$this->mergeConfigFrom(__DIR__.'/../config/helo.php', 'helo');
45+
$this->mergeConfigFrom(__DIR__ . '/../config/helo.php', 'helo');
4646

4747
$this->app->singleton(Mailer::class, function ($app) {
4848
$version = $this->version($app);
@@ -65,15 +65,11 @@ public function register()
6565

6666
protected function bootMailable()
6767
{
68-
if ($this->version() < 10) {
69-
$instance = app()->make(Mailer::class);
68+
$instance = app()->make(Mailer::class);
7069

71-
Mail::swap($instance);
70+
Mail::swap($instance);
7271

73-
$this->app->instance(MailerContract::class, $instance);
74-
} else {
75-
Mail::swap(new MailManager($this->app));
76-
}
72+
$this->app->instance(MailerContract::class, $instance);
7773
}
7874

7975
private function version($app = null): int

0 commit comments

Comments
 (0)