From a85708429e71ceff678ae029f413da64008442ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 12 Mar 2024 17:22:23 +0100 Subject: [PATCH] add todo --- src/Resolvers/PathTenantResolver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Resolvers/PathTenantResolver.php b/src/Resolvers/PathTenantResolver.php index d5742294..ced358ac 100644 --- a/src/Resolvers/PathTenantResolver.php +++ b/src/Resolvers/PathTenantResolver.php @@ -51,6 +51,8 @@ class PathTenantResolver extends Contracts\CachedTenantResolver // todo@samuel: fix the coupling here. when this is called from the cachedresolver, $args are the tenant key. when it's called from within this class, $args are a Route instance // the logic shouldn't have to be coupled to where it's being called from + // todo@samuel also make the tenant column configurable + // $args[0] can be either a Route instance with the tenant key as a parameter // Or the tenant key $args = [$args[0] instanceof Route ? $args[0]->parameter(static::tenantParameterName()) : $args[0]];