mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Disable TenantConfig by default
This commit is contained in:
parent
f77a929113
commit
b66574b1ab
2 changed files with 9 additions and 6 deletions
|
|
@ -81,11 +81,11 @@ return [
|
||||||
// Features are classes that provide additional functionality
|
// Features are classes that provide additional functionality
|
||||||
// not needed for tenancy to be bootstrapped. They are run
|
// not needed for tenancy to be bootstrapped. They are run
|
||||||
// regardless of whether tenancy has been initialized.
|
// regardless of whether tenancy has been initialized.
|
||||||
Stancl\Tenancy\Features\TenantConfig::class,
|
|
||||||
Stancl\Tenancy\Features\TelescopeTags::class,
|
Stancl\Tenancy\Features\TelescopeTags::class,
|
||||||
Stancl\Tenancy\Features\TenantRedirect::class,
|
Stancl\Tenancy\Features\TenantRedirect::class,
|
||||||
|
// Stancl\Tenancy\Features\TenantConfig::class,
|
||||||
],
|
],
|
||||||
'storage_to_config_map' => [
|
'storage_to_config_map' => [ // Used by the TenantConfig feature
|
||||||
// 'paypal_api_key' => 'services.paypal.api_key',
|
// 'paypal_api_key' => 'services.paypal.api_key',
|
||||||
],
|
],
|
||||||
'home_url' => '/app',
|
'home_url' => '/app',
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,13 @@ class TenantConfigTest extends TestCase
|
||||||
public function config_is_merged_and_removed()
|
public function config_is_merged_and_removed()
|
||||||
{
|
{
|
||||||
$this->assertSame(null, config('services.paypal'));
|
$this->assertSame(null, config('services.paypal'));
|
||||||
config(['tenancy.storage_to_config_map' => [
|
config([
|
||||||
'paypal_api_public' => 'services.paypal.public',
|
'tenancy.storage_to_config_map' => [
|
||||||
'paypal_api_private' => 'services.paypal.private',
|
'paypal_api_public' => 'services.paypal.public',
|
||||||
]]);
|
'paypal_api_private' => 'services.paypal.private',
|
||||||
|
],
|
||||||
|
'tenancy.features' => ['Stancl\Tenancy\Features\TenantConfig'],
|
||||||
|
]);
|
||||||
|
|
||||||
tenancy()->create('foo.localhost', [
|
tenancy()->create('foo.localhost', [
|
||||||
'paypal_api_public' => 'foo',
|
'paypal_api_public' => 'foo',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue