1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 19:34:04 +00:00

Replace MailManager singleton with an instance of a custom mail manager which always resolves the mailers instead of getting the cached ones

This commit is contained in:
lukinovec 2022-10-31 15:01:58 +01:00
parent 198f34f5e1
commit 62c8bb0f67
2 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy;
use Illuminate\Mail\MailManager;
class TenancyMailManager extends MailManager
{
protected function get($name)
{
return $this->resolve($name);
}
}