class QueueTenancyBootstrapper implements TenancyBootstrapper (View source)

Properties

protected Repository $config
protected QueueManager $queue
static bool $forceRefresh

Don't persist the same tenant across multiple jobs even if they have the same tenant ID.

Methods

static 
__constructStatic(Application $app)

The normal constructor is only executed after tenancy is bootstrapped.

__construct(Repository $config, QueueManager $queue)

No description

static 
setUpJobListener($dispatcher, $runningTests)

No description

static 
initializeTenancyForQueue($tenantId)

No description

static 
revertToPreviousState($event, $previousTenant)

No description

setUpPayloadGenerator()

No description

bootstrap(Tenant $tenant)

No description

revert()

No description

getPayload(string $connection)

No description

Details

static __constructStatic(Application $app)

The normal constructor is only executed after tenancy is bootstrapped.

However, we're registering a hook to initialize tenancy. Therefore, we need to register the hook at service provider execution time.

Parameters

Application $app

__construct(Repository $config, QueueManager $queue)

No description

Parameters

Repository $config
QueueManager $queue

static protected setUpJobListener($dispatcher, $runningTests)

No description

Parameters

$dispatcher
$runningTests

static protected initializeTenancyForQueue($tenantId)

No description

Parameters

$tenantId

static protected revertToPreviousState($event, $previousTenant)

No description

Parameters

$event
$previousTenant

protected setUpPayloadGenerator()

No description

bootstrap(Tenant $tenant)

No description

Parameters

Tenant $tenant

revert()

No description

getPayload(string $connection)

No description

Parameters

string $connection