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

Change $credentialsMap so that config keys are the keys, and the tenant property names are the values

This commit is contained in:
lukinovec 2022-11-01 18:18:57 +01:00
parent 04ada13584
commit 4016bc17ba

View file

@ -17,18 +17,18 @@ class MailTenancyBootstrapper implements TenancyBootstrapper
* *
* For example: * For example:
* [ * [
* 'property' => 'config.key.name', * 'config.key.name' => 'tenant_property',
* ] * ]
*/ */
public static array $credentialsMap = [ public static array $credentialsMap = [
'smtp_transport' => 'mail.mailers.smtp.transport', 'mail.mailers.smtp.transport' => 'smtp_transport',
'smtp_host' => 'mail.mailers.smtp.host', 'mail.mailers.smtp.host' => 'smtp_host',
'smtp_port' => 'mail.mailers.smtp.port', 'mail.mailers.smtp.port' => 'smtp_port',
'smtp_encryption' => 'mail.mailers.smtp.encryption', 'mail.mailers.smtp.encryption' => 'smtp_encryption',
'smtp_username' => 'mail.mailers.smtp.username', 'mail.mailers.smtp.username' => 'smtp_username',
'smtp_password' => 'mail.mailers.smtp.password', 'mail.mailers.smtp.password' => 'smtp_password',
'smtp_timeout' => 'mail.mailers.smtp.timeout', 'mail.mailers.smtp.timeout' => 'smtp_timeout',
'smtp_local_domain' => 'mail.mailers.smtp.local_domain', 'mail.mailers.smtp.local_domain' => 'smtp_local_domain',
]; ];
public function __construct(protected Repository $config) public function __construct(protected Repository $config)