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

Remove Tenant facade, move facades to Facades

This commit is contained in:
Samuel Štancl 2019-09-08 17:24:03 +02:00
parent 52542a8ee3
commit dabaff1338
4 changed files with 7 additions and 8 deletions

View file

@ -40,9 +40,8 @@
"Stancl\\Tenancy\\TenancyServiceProvider" "Stancl\\Tenancy\\TenancyServiceProvider"
], ],
"aliases": { "aliases": {
"Tenancy": "Stancl\\Tenancy\\TenancyFacade", "Tenancy": "Stancl\\Tenancy\\Facades\\Tenancy",
"Tenant": "Stancl\\Tenancy\\TenancyFacade", "GlobalCache": "Stancl\\Tenancy\\Facades\\GlobalCache"
"GlobalCache": "Stancl\\Tenancy\\GlobalCacheFacade"
} }
} }
}, },

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Stancl\Tenancy; namespace Stancl\Tenancy\Facades;
use Illuminate\Support\Facades\Facade; use Illuminate\Support\Facades\Facade;

View file

@ -2,8 +2,9 @@
declare(strict_types=1); declare(strict_types=1);
namespace Stancl\Tenancy; namespace Stancl\Tenancy\Facades;
use Stancl\Tenancy\TenantManager;
use Illuminate\Support\Facades\Facade; use Illuminate\Support\Facades\Facade;
class TenancyFacade extends Facade class TenancyFacade extends Facade

View file

@ -132,9 +132,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getPackageAliases($app) protected function getPackageAliases($app)
{ {
return [ return [
'Tenancy' => \Stancl\Tenancy\TenancyFacade::class, 'Tenancy' => \Stancl\Tenancy\Facades\Tenancy::class,
'Tenant' => \Stancl\Tenancy\TenancyFacade::class, 'GlobalCache' => \Stancl\Tenancy\Facades\GlobalCache::class,
'GlobalCache' => \Stancl\Tenancy\GlobalCacheFacade::class,
]; ];
} }