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

Make PostgresRLSBootstrapper a singleton

This commit is contained in:
lukinovec 2023-06-05 12:02:41 +02:00
parent 45df85d2a3
commit 7c7680baf6

View file

@ -16,6 +16,7 @@ use Stancl\Tenancy\Bootstrappers\UrlTenancyBootstrapper;
use Stancl\Tenancy\Bootstrappers\MailTenancyBootstrapper;
use Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper;
use Stancl\Tenancy\Bootstrappers\BroadcastTenancyBootstrapper;
use Stancl\Tenancy\Bootstrappers\Integrations\PostgresRLSBootstrapper;
use Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper;
abstract class TestCase extends \Orchestra\Testbench\TestCase
@ -123,6 +124,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
$app->singleton(BroadcastTenancyBootstrapper::class);
$app->singleton(MailTenancyBootstrapper::class);
$app->singleton(UrlTenancyBootstrapper::class);
$app->singleton(PostgresRLSBootstrapper::class);
}
protected function getPackageProviders($app)