mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:14:04 +00:00
Rename bootstrapper
This commit is contained in:
parent
28efc0ca97
commit
8ccc27e8c3
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ use Stancl\Tenancy\Database\Contracts\TenantWithDatabase;
|
||||||
*
|
*
|
||||||
* This bootstrapper is intended to be used with single-database tenancy.
|
* This bootstrapper is intended to be used with single-database tenancy.
|
||||||
*/
|
*/
|
||||||
class PostgresTenancyBootstrapper implements TenancyBootstrapper
|
class PostgresSingleDatabaseBootstrapper implements TenancyBootstrapper
|
||||||
{
|
{
|
||||||
protected array $originalCentralConnectionConfig;
|
protected array $originalCentralConnectionConfig;
|
||||||
protected array $originalPostgresConfig;
|
protected array $originalPostgresConfig;
|
||||||
|
|
@ -17,12 +17,12 @@ use Stancl\Tenancy\Jobs\DeleteTenantsPostgresUser;
|
||||||
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
||||||
use Stancl\Tenancy\Jobs\CreatePostgresUserForTenant;
|
use Stancl\Tenancy\Jobs\CreatePostgresUserForTenant;
|
||||||
use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
||||||
use Stancl\Tenancy\Bootstrappers\Integrations\PostgresTenancyBootstrapper;
|
use Stancl\Tenancy\Bootstrappers\Integrations\PostgresSingleDatabaseBootstrapper;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
DB::purge('central');
|
DB::purge('central');
|
||||||
|
|
||||||
config(['tenancy.bootstrappers' => [PostgresTenancyBootstrapper::class]]);
|
config(['tenancy.bootstrappers' => [PostgresSingleDatabaseBootstrapper::class]]);
|
||||||
|
|
||||||
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
|
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
|
||||||
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue