1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 22:24:03 +00:00

Merge branch '1.x' into telescope-tags

This commit is contained in:
Samuel Štancl 2019-08-02 20:06:52 +02:00
commit f23fd125b1
9 changed files with 112 additions and 6 deletions

13
src/GlobalCacheFacade.php Normal file
View file

@ -0,0 +1,13 @@
<?php
namespace Stancl\Tenancy;
use Illuminate\Support\Facades\Facade;
class GlobalCacheFacade extends Facade
{
protected static function getFacadeAccessor()
{
return 'globalCache';
}
}

View file

@ -13,6 +13,7 @@ use Illuminate\Support\ServiceProvider;
use Stancl\Tenancy\Commands\TenantList;
use Stancl\Tenancy\Interfaces\StorageDriver;
use Stancl\Tenancy\Interfaces\ServerConfigManager;
use Illuminate\Cache\CacheManager;
class TenancyServiceProvider extends ServiceProvider
{
@ -83,5 +84,9 @@ class TenancyServiceProvider extends ServiceProvider
$this->app->singleton(Seed::class, function ($app) {
return new Seed($app['db'], $app[DatabaseManager::class]);
});
$this->app->bind('globalCache', function ($app) {
return new CacheManager($app);
});
}
}