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

change default cookie name, add todos

This commit is contained in:
Samuel Štancl 2024-04-15 03:11:11 +02:00
parent 55b1c5387c
commit 83b1ae1aea
5 changed files with 5 additions and 4 deletions

View file

@ -36,6 +36,7 @@ class InitializeTenancyByDomainOrSubdomain extends InitializeTenancyBySubdomain
}
// If a Response instance was returned, we return it immediately.
// todo@samuel when does this execute?
if ($domain instanceof Response) {
return $domain;
}

View file

@ -18,7 +18,7 @@ class InitializeTenancyByRequestData extends IdentificationMiddleware implements
use UsableWithEarlyIdentification;
public static string $header = 'X-Tenant';
public static string $cookie = 'X-Tenant';
public static string $cookie = 'tenant';
public static string $queryParameter = 'tenant';
public static ?Closure $onFail = null;