File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public function bootstrap(Tenant $tenant)
28
28
$ prefix = $ this ->config ['tenancy.redis.prefix_base ' ] . $ tenant ->getTenantKey ();
29
29
$ client = Redis::connection ($ connection )->client ();
30
30
31
- $ this ->originalPrefixes [$ connection ] = $ client ->getOption ($ client ::OPT_PREFIX );
32
- $ client ->setOption ($ client ::OPT_PREFIX , $ prefix );
31
+ $ this ->originalPrefixes [$ connection ] = $ client ->getOption (\Redis ::OPT_PREFIX );
32
+ $ client ->setOption (\Redis ::OPT_PREFIX , $ prefix );
33
33
}
34
34
}
35
35
@@ -38,7 +38,7 @@ public function revert()
38
38
foreach ($ this ->prefixedConnections () as $ connection ) {
39
39
$ client = Redis::connection ($ connection )->client ();
40
40
41
- $ client ->setOption ($ client ::OPT_PREFIX , $ this ->originalPrefixes [$ connection ]);
41
+ $ client ->setOption (\Redis ::OPT_PREFIX , $ this ->originalPrefixes [$ connection ]);
42
42
}
43
43
44
44
$ this ->originalPrefixes = [];
You can’t perform that action at this time.
0 commit comments