mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 00:34:03 +00:00
Add cache manager config key
This commit is contained in:
parent
ca907e68be
commit
ab92f85b51
2 changed files with 6 additions and 4 deletions
|
|
@ -96,10 +96,6 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
return new Commands\MigrateFreshOverride;
|
||||
});
|
||||
|
||||
$this->app->singleton('cache', function ($app) {
|
||||
return new TenantCacheManager($app);
|
||||
});
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/../assets/config.php' => config_path('tenancy.php'),
|
||||
], 'config');
|
||||
|
|
@ -138,5 +134,9 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
|
||||
return $instance;
|
||||
});
|
||||
|
||||
$this->app->singleton('cache', function ($app) {
|
||||
return new $this->app['config']['tenancy.cache.manager']($app);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue