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

Fix import

This commit is contained in:
Samuel Štancl 2019-09-16 15:10:02 +02:00
parent db2366b889
commit 6d10d56ad3

View file

@ -7,6 +7,7 @@ namespace Stancl\Tenancy\TenancyBootstrappers;
use Illuminate\Cache\CacheManager; use Illuminate\Cache\CacheManager;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Stancl\Tenancy\Contracts\TenancyBootstrapper; use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\CacheManager as TenantCacheManager;
use Stancl\Tenancy\Tenant; use Stancl\Tenancy\Tenant;
class CacheTenancyBootstrapper implements TenancyBootstrapper class CacheTenancyBootstrapper implements TenancyBootstrapper
@ -26,7 +27,7 @@ class CacheTenancyBootstrapper implements TenancyBootstrapper
{ {
$this->originalCache = $this->originalCache ?? $this->app['cache']; $this->originalCache = $this->originalCache ?? $this->app['cache'];
$this->app->extend('cache', function () { $this->app->extend('cache', function () {
return new CacheManager($this->app); return new TenantCacheManager($this->app);
}); });
} }