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

Disable TenantConfig by default

This commit is contained in:
Samuel Štancl 2019-10-04 21:33:48 +02:00
parent f77a929113
commit b66574b1ab
2 changed files with 9 additions and 6 deletions

View file

@ -81,11 +81,11 @@ return [
// Features are classes that provide additional functionality
// not needed for tenancy to be bootstrapped. They are run
// regardless of whether tenancy has been initialized.
Stancl\Tenancy\Features\TenantConfig::class,
Stancl\Tenancy\Features\TelescopeTags::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',
],
'home_url' => '/app',

View file

@ -13,10 +13,13 @@ class TenantConfigTest extends TestCase
public function config_is_merged_and_removed()
{
$this->assertSame(null, config('services.paypal'));
config(['tenancy.storage_to_config_map' => [
config([
'tenancy.storage_to_config_map' => [
'paypal_api_public' => 'services.paypal.public',
'paypal_api_private' => 'services.paypal.private',
]]);
],
'tenancy.features' => ['Stancl\Tenancy\Features\TenantConfig'],
]);
tenancy()->create('foo.localhost', [
'paypal_api_public' => 'foo',