mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 20:44:03 +00:00
Refactor more old code and get tests to pass
This commit is contained in:
parent
c5377a16f7
commit
c32f229dd5
72 changed files with 425 additions and 531 deletions
|
|
@ -22,7 +22,7 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
public function start(Tenant $tenant)
|
||||
public function bootstrap(Tenant $tenant)
|
||||
{
|
||||
foreach ($this->prefixedConnections() as $connection) {
|
||||
$prefix = $this->config['tenancy.redis.prefix_base'] . $tenant->getTenantKey();
|
||||
|
|
@ -33,7 +33,7 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
|
|||
}
|
||||
}
|
||||
|
||||
public function end()
|
||||
public function revert()
|
||||
{
|
||||
foreach ($this->prefixedConnections() as $connection) {
|
||||
$client = Redis::connection($connection)->client();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue