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

Post-end() state reset

This commit is contained in:
Samuel Štancl 2019-09-27 21:24:40 +02:00
parent aeafa24971
commit 753ff517c4
3 changed files with 6 additions and 0 deletions

View file

@ -36,5 +36,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
$this->app->extend('cache', function () {
return $this->originalCache;
});
$this->originalCache = null;
}
}

View file

@ -75,5 +75,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
}
$this->originalPaths = [];
}
}

View file

@ -40,6 +40,8 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
$client->setOption($client::OPT_PREFIX, $this->originalPrefixes[$connection]);
}
$this->originalPrefixes = [];
}
protected function prefixedConnections()