1
0
Fork 0
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:
Samuel Štancl 2019-09-04 16:57:19 +02:00
parent f4421af6c5
commit 72baa45126
4 changed files with 11 additions and 2 deletions

View file

@ -9,6 +9,9 @@ use Stancl\Tenancy\Jobs\QueuedTenantDatabaseDeleter;
use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
use Stancl\Tenancy\Exceptions\DatabaseManagerNotRegisteredException;
/**
* @final Class is subject to breaking changes in minor and patch versions.
*/
final class DatabaseManager
{
public $originalDefaultConnection;

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\StorageDrivers;
use Stancl\Tenancy\Tenant;
use Stancl\Tenancy\TenantModel as Tenant;
use Stancl\Tenancy\Interfaces\StorageDriver;
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;

View file

@ -11,6 +11,9 @@ use Stancl\Tenancy\Interfaces\UniqueIdentifierGenerator;
use Stancl\Tenancy\Exceptions\CannotChangeUuidOrDomainException;
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
/**
* @final Class is subject to breaking changes in minor and patch versions.
*/
final class TenantManager
{
use BootstrapsTenancy;

View file

@ -6,7 +6,10 @@ namespace Stancl\Tenancy;
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 $primaryKey = 'uuid';