1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 10:24:03 +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,13 +5,14 @@ declare(strict_types=1);
namespace Stancl\Tenancy\TenancyBoostrappers;
use Stancl\Tenancy\Contracts\TenancyBootstrapper;
use Stancl\Tenancy\Tenant;
class CacheTenancyBoostrapper implements TenancyBootstrapper
{
/** @var \Illuminate\Cache\CacheManager */
protected $originalCache;
public function start()
public function start(Tenant $tenant)
{
$this->originalCache = $this->originalCache ?? $this->app['cache'];
$this->app->extend('cache', function () {