mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 12:54:02 +00:00
Move MailManager extension to MailTenancyBootstrapper
This commit is contained in:
parent
d5e0e34087
commit
d83cd1ddb4
3 changed files with 13 additions and 8 deletions
|
|
@ -70,12 +70,6 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
return new Commands\Seed($app['db']);
|
||||
});
|
||||
|
||||
// Use custom mail manager that resolves the mailers specified in its $tenantMailers static property
|
||||
// Instead of getting the cached mailers from the $mailers property
|
||||
$this->app->extend(MailManager::class, function (MailManager $mailManager) {
|
||||
return new TenancyMailManager($this->app);
|
||||
});
|
||||
|
||||
$this->app->bind('globalCache', function ($app) {
|
||||
return new CacheManager($app);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue