Commit 61114e2 1 parent 7bc1ff4 commit 61114e2 Copy full SHA for 61114e2
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Queue \Events \JobRetryRequested ;
7
7
use Illuminate \Support \Arr ;
8
8
use Illuminate \Support \Facades \Context ;
9
+ use ReflectionClass ;
9
10
use Spatie \Multitenancy \Concerns \BindAsCurrentTenant ;
10
11
use Spatie \Multitenancy \Concerns \UsesMultitenancyConfig ;
11
12
use Spatie \Multitenancy \Contracts \IsTenant ;
12
13
use Spatie \Multitenancy \Exceptions \CurrentTenantCouldNotBeDeterminedInTenantAwareJob ;
13
14
use Spatie \Multitenancy \Jobs \NotTenantAware ;
14
15
use Spatie \Multitenancy \Jobs \TenantAware ;
16
+ use Throwable ;
15
17
16
18
class MakeQueueTenantAwareAction
17
19
{
@@ -49,7 +51,7 @@ protected function isTenantAware(JobProcessing|JobRetryRequested $event): bool
49
51
50
52
try {
51
53
$ command = unserialize ($ payload ['data ' ]['command ' ]);
52
- } catch (\ Throwable ) {
54
+ } catch (Throwable ) {
53
55
/**
54
56
* We might need the tenant to unserialize jobs as models could
55
57
* have global scopes set that require a current tenant to
@@ -65,7 +67,7 @@ protected function isTenantAware(JobProcessing|JobRetryRequested $event): bool
65
67
66
68
$ job = $ this ->getJobFromQueueable ($ command );
67
69
68
- $ reflection = new \ ReflectionClass ($ job );
70
+ $ reflection = new ReflectionClass ($ job );
69
71
70
72
if ($ reflection ->implementsInterface (TenantAware::class)) {
71
73
return true ;
You can’t perform that action at this time.
0 commit comments