mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:04:04 +00:00
Post-end() state reset
This commit is contained in:
parent
aeafa24971
commit
753ff517c4
3 changed files with 6 additions and 0 deletions
|
|
@ -36,5 +36,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
|
||||||
$this->app->extend('cache', function () {
|
$this->app->extend('cache', function () {
|
||||||
return $this->originalCache;
|
return $this->originalCache;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$this->originalCache = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,5 +75,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
|
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
|
||||||
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
|
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->originalPaths = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
$client->setOption($client::OPT_PREFIX, $this->originalPrefixes[$connection]);
|
$client->setOption($client::OPT_PREFIX, $this->originalPrefixes[$connection]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->originalPrefixes = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prefixedConnections()
|
protected function prefixedConnections()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue