1
0
Fork 0
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:
lukinovec 2022-11-24 13:22:26 +01:00
parent d5e0e34087
commit d83cd1ddb4
3 changed files with 13 additions and 8 deletions

View file

@ -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);
});