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

Merge branch '3.x' of github.com:stancl/tenancy into 3.x

This commit is contained in:
Samuel Štancl 2020-06-28 18:24:54 +02:00
commit 1e18dc3a74

View file

@ -45,7 +45,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
$tenantId = $event->job->payload()['tenant_id'] ?? null; $tenantId = $event->job->payload()['tenant_id'] ?? null;
// The job is not tenant-aware // The job is not tenant-aware
if (!$tenantId) { if (! $tenantId) {
return; return;
} }
@ -64,7 +64,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
{ {
$bootstrapper = &$this; $bootstrapper = &$this;
if (!$this->queue instanceof QueueFake) { if (! $this->queue instanceof QueueFake) {
$this->queue->createPayloadUsing(function ($connection) use (&$bootstrapper) { $this->queue->createPayloadUsing(function ($connection) use (&$bootstrapper) {
return $bootstrapper->getPayload($connection); return $bootstrapper->getPayload($connection);
}); });