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:
parent
23a4fd24b0
commit
7a0154bf8e
8 changed files with 46 additions and 29 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue