1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 23:54:03 +00:00

[3.x] Use static properties instead of config for features (#391)

* Use static properites instead of config for features

* update tests
This commit is contained in:
Samuel Štancl 2020-05-03 18:12:40 +02:00 committed by GitHub
parent 3bb2759fe2
commit c2c90ff755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 13 deletions

View file

@ -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;
}
}