|
@@ -21,7 +21,7 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
*/ |
|
22
|
22
|
public function register() |
|
23
|
23
|
{ |
|
24
|
|
- $this->app->singleton(TransportManager::class, function (Application $app) { |
|
|
24
|
+ $this->app->singleton(TransportManager::class, function(Application $app) { |
|
25
|
25
|
return new TransportManager($app); |
|
26
|
26
|
}); |
|
27
|
27
|
|
|
@@ -37,7 +37,7 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
*/ |
|
38
|
38
|
protected function registerMailer() |
|
39
|
39
|
{ |
|
40
|
|
- $this->app->singleton('mailer', function (Application $app) { |
|
|
40
|
+ $this->app->singleton('mailer', function(Application $app) { |
|
41
|
41
|
|
|
42
|
42
|
$mailer = new transports\mail\Mailer($app->make('mailer.transport'), $app->make('view')); |
|
43
|
43
|
|
|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
|
|
61
|
61
|
// We are going to need to instantiate the Mailer with a proper Driver. |
|
62
|
62
|
// @todo Drop the DriverManager in favour of handling the logic in this very Service Provider itself? |
|
63
|
|
- $this->app->bind('mailer.transport', $this->app->share(function (Application $app) { |
|
|
63
|
+ $this->app->bind('mailer.transport', $this->app->share(function(Application $app) { |
|
64
|
64
|
return (new transports\mail\DriverManager($app))->driver(); |
|
65
|
65
|
})); |
|
66
|
66
|
} |
Please login to merge, or discard this patch.