Skip to content

Commit 8db27a3

Browse files
committed
Forget tenant parameter when a tenant is resolved from cache in PathTenantResolver (fix #1174)
1 parent 5fe8825 commit 8db27a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Resolvers/PathTenantResolver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public function resolveWithoutCache(...$args): Tenant
3737
throw new TenantCouldNotBeIdentifiedByPathException($id);
3838
}
3939

40+
public function resolved(Tenant $tenant, ...$args): void
41+
{
42+
/** @var Route $route */
43+
$route = $args[0];
44+
45+
$route->forgetParameter(static::$tenantParameterName);
46+
}
47+
4048
public function getArgsForTenant(Tenant $tenant): array
4149
{
4250
return [

0 commit comments

Comments
 (0)