Skip to content

Commit 28374dc

Browse files
committed
chore: Add note that parameter-based resolvers also work without routes and parameters
1 parent b28f415 commit 28374dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

identity-resolvers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,16 @@ public function resolveFromRoute(Route $route, Tenancy $tenancy, Request $reques
9393

9494
This method functions in an almost identical way, except it will use a `Route` object as well as a `Request`.
9595

96-
This contract also provides an additional method that lets you retrieve the route parameter name that it expects,
96+
This contract also provides an additional method that lets you retrieve the route parameter name that it expects
9797
for a given tenancy.
9898

9999
```php
100100
public function getRouteParameterName(Tenancy $tenancy): string;
101101
```
102102

103+
> [!NOTE]
104+
> Identity resolvers that make use of route parameters **will also** still function without a route.
105+
103106
### The setup hook
104107

105108
The final part of an identity resolver is the setup lifecycle hook which is called during the tenancy bootstrapping,

0 commit comments

Comments
 (0)