class PathTenantResolver extends CachedTenantResolver (View source)

Properties

protected Repository $cache from  CachedTenantResolver

Methods

__construct(Factory $cache)

No description

resolve(mixed ...$args)

Resolve a tenant using some value.

void
invalidateCache(Tenant $tenant)

No description

string
getCacheKey(mixed ...$args)

No description

resolveWithoutCache(mixed ...$args)

No description

void
resolved(Tenant $tenant, mixed ...$args)

No description

array
getArgsForTenant(Tenant $tenant)

Get all the arg combinations for resolve() that can be used to find this tenant.

static bool
shouldCache()

No description

static int
cacheTTL()

No description

static string|null
cacheStore()

No description

static string
tenantParameterName()

No description

Details

__construct(Factory $cache)

No description

Parameters

Factory $cache

Tenant resolve(mixed ...$args)

Resolve a tenant using some value.

Parameters

mixed ...$args

Return Value

Tenant

Exceptions

TenantCouldNotBeIdentifiedException

void invalidateCache(Tenant $tenant)

No description

Parameters

Tenant $tenant

Return Value

void

string getCacheKey(mixed ...$args)

No description

Parameters

mixed ...$args

Return Value

string

Tenant resolveWithoutCache(mixed ...$args)

No description

Parameters

mixed ...$args

Return Value

Tenant

void resolved(Tenant $tenant, mixed ...$args)

No description

Parameters

Tenant $tenant
mixed ...$args

Return Value

void

array getArgsForTenant(Tenant $tenant)

Get all the arg combinations for resolve() that can be used to find this tenant.

Parameters

Tenant $tenant

Return Value

array

static bool shouldCache()

No description

Return Value

bool

static int cacheTTL()

No description

Return Value

int

static string|null cacheStore()

No description

Return Value

string|null

static string tenantParameterName()

No description

Return Value

string