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

Get tests to run

This commit is contained in:
Samuel Štancl 2019-09-11 21:11:40 +02:00
parent 23a4fd24b0
commit 7a0154bf8e
8 changed files with 46 additions and 29 deletions

View file

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\TenantDatabaseManagers;
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\Tenant;
class RedisTenancyBootstrapper implements TenancyBootstrapper
{
@ -19,7 +20,7 @@ class RedisTenancyBootstrapper implements TenancyBootstrapper
$this->app = $app;
}
public function start()
public function start(Tenant $tenant)
{
foreach ($this->prefixedConnections() as $connection) {
$prefix = $this->app['config']['tenancy.redis.prefix_base'] . $this->tenant['uuid'];