mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
Update comments after review
This commit is contained in:
parent
7b656c0d99
commit
19deb454eb
1 changed files with 2 additions and 8 deletions
|
|
@ -16,11 +16,6 @@ use Stancl\Tenancy\Bootstrappers\MailTenancyBootstrapper;
|
||||||
* the mailers specified in the static $tenantMailers property
|
* the mailers specified in the static $tenantMailers property
|
||||||
* instead of getting them from the $mailers property where they're cached.
|
* instead of getting them from the $mailers property where they're cached.
|
||||||
*
|
*
|
||||||
* This is mainly used to solve the issue where
|
|
||||||
* mail gets sent with the incorrect (old) mailer credentials
|
|
||||||
* due to the mailer being cached in the manager's $mailers property
|
|
||||||
* and not getting updated when the tenant's credentials change.
|
|
||||||
*
|
|
||||||
* @see MailTenancyBootstrapper
|
* @see MailTenancyBootstrapper
|
||||||
*/
|
*/
|
||||||
class TenancyMailManager extends MailManager
|
class TenancyMailManager extends MailManager
|
||||||
|
|
@ -34,9 +29,8 @@ class TenancyMailManager extends MailManager
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override the get method so that the mailers in $tenantMailers
|
* Override the get method so that the mailers in $tenantMailers always get resolved,
|
||||||
* always get resolved, even when they're cached and available in the $mailers property
|
* even when they're cached and available in the $mailers property.
|
||||||
* so that the mailers have up-to-date mailer credentials.
|
|
||||||
*/
|
*/
|
||||||
protected function get($name)
|
protected function get($name)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue