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:
parent
198f34f5e1
commit
62c8bb0f67
2 changed files with 26 additions and 5 deletions
15
src/TenancyMailManager.php
Normal file
15
src/TenancyMailManager.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue