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

Uniform deletion of 'tenant' from route params

This commit is contained in:
Craig Riley 2023-06-11 01:33:34 +01:00 committed by GitHub
parent a3a0320fb4
commit f93d075fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,13 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
throw new TenantCouldNotBeIdentifiedByPathException($id);
}
public function resolved(Tenant $tenant, ...$args): void
{
$route = $args[0];
$route->forgetParameter(static::$tenantParameterName);
}
public function getArgsForTenant(Tenant $tenant): array
{