mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:54:03 +00:00
Make TenantModel final
This commit is contained in:
parent
f4421af6c5
commit
72baa45126
4 changed files with 11 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ use Stancl\Tenancy\Jobs\QueuedTenantDatabaseDeleter;
|
||||||
use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
|
use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
|
||||||
use Stancl\Tenancy\Exceptions\DatabaseManagerNotRegisteredException;
|
use Stancl\Tenancy\Exceptions\DatabaseManagerNotRegisteredException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @final Class is subject to breaking changes in minor and patch versions.
|
||||||
|
*/
|
||||||
final class DatabaseManager
|
final class DatabaseManager
|
||||||
{
|
{
|
||||||
public $originalDefaultConnection;
|
public $originalDefaultConnection;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\StorageDrivers;
|
namespace Stancl\Tenancy\StorageDrivers;
|
||||||
|
|
||||||
use Stancl\Tenancy\Tenant;
|
use Stancl\Tenancy\TenantModel as Tenant;
|
||||||
use Stancl\Tenancy\Interfaces\StorageDriver;
|
use Stancl\Tenancy\Interfaces\StorageDriver;
|
||||||
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@ use Stancl\Tenancy\Interfaces\UniqueIdentifierGenerator;
|
||||||
use Stancl\Tenancy\Exceptions\CannotChangeUuidOrDomainException;
|
use Stancl\Tenancy\Exceptions\CannotChangeUuidOrDomainException;
|
||||||
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @final Class is subject to breaking changes in minor and patch versions.
|
||||||
|
*/
|
||||||
final class TenantManager
|
final class TenantManager
|
||||||
{
|
{
|
||||||
use BootstrapsTenancy;
|
use BootstrapsTenancy;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,10 @@ namespace Stancl\Tenancy;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class Tenant extends Model
|
/**
|
||||||
|
* @final Class is subject to breaking changes in minor and patch versions.
|
||||||
|
*/
|
||||||
|
final class TenantModel extends Model
|
||||||
{
|
{
|
||||||
protected $guarded = [];
|
protected $guarded = [];
|
||||||
protected $primaryKey = 'uuid';
|
protected $primaryKey = 'uuid';
|
||||||
Loading…
Add table
Add a link
Reference in a new issue