mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
Use static properites instead of config for features
This commit is contained in:
parent
d900929264
commit
7bdecd1c63
3 changed files with 8 additions and 8 deletions
|
|
@ -17,6 +17,10 @@ class TenantConfig implements Feature
|
|||
/** @var array */
|
||||
public $originalConfig = [];
|
||||
|
||||
public static $storageToConfigMap = [
|
||||
// 'paypal_api_key' => 'services.paypal.api_key',
|
||||
];
|
||||
|
||||
public function __construct(Repository $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
|
|
@ -56,6 +60,6 @@ class TenantConfig implements Feature
|
|||
|
||||
public function getStorageToConfigMap(): array
|
||||
{
|
||||
return $this->config['tenancy.storage_to_config_map'] ?? [];
|
||||
return static::$storageToConfigMap;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue