From 6d10d56ad3fd997281b8b8ffe9b5530250db93b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 16 Sep 2019 15:10:02 +0200 Subject: [PATCH] Fix import --- src/TenancyBootstrappers/CacheTenancyBoostrapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TenancyBootstrappers/CacheTenancyBoostrapper.php b/src/TenancyBootstrappers/CacheTenancyBoostrapper.php index 007f6479..25557c12 100644 --- a/src/TenancyBootstrappers/CacheTenancyBoostrapper.php +++ b/src/TenancyBootstrappers/CacheTenancyBoostrapper.php @@ -7,6 +7,7 @@ namespace Stancl\Tenancy\TenancyBootstrappers; use Illuminate\Cache\CacheManager; use Illuminate\Contracts\Foundation\Application; use Stancl\Tenancy\Contracts\TenancyBootstrapper; +use Stancl\Tenancy\CacheManager as TenantCacheManager; use Stancl\Tenancy\Tenant; class CacheTenancyBootstrapper implements TenancyBootstrapper @@ -26,7 +27,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper { $this->originalCache = $this->originalCache ?? $this->app['cache']; $this->app->extend('cache', function () { - return new CacheManager($this->app); + return new TenantCacheManager($this->app); }); }