QueueTenancyBootstrapper
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
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.
__construct(Repository $config, QueueManager $queue)
No description
static protected
setUpJobListener($dispatcher, $runningTests)
No description
static protected
initializeTenancyForQueue($tenantId)
No description
static protected
revertToPreviousState($event, $previousTenant)
No description
protected
setUpPayloadGenerator()
No description
bootstrap(Tenant $tenant)
No description
revert()
No description
getPayload(string $connection)
No description