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

Update comments after review

This commit is contained in:
lukinovec 2022-11-02 05:55:14 +01:00
parent 7b656c0d99
commit 19deb454eb

View file

@ -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)
{ {