mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
Pass $request and $next to onFail closures
This commit is contained in:
parent
4f5ef6fc56
commit
b441d789b6
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ class InitializeTenancy
|
||||||
try {
|
try {
|
||||||
tenancy()->init($request->getHost());
|
tenancy()->init($request->getHost());
|
||||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||||
return ($this->onFail)($e);
|
return ($this->onFail)($e, $request, $next);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class InitializeTenancyByRequestData
|
||||||
try {
|
try {
|
||||||
$this->initializeTenancy($request);
|
$this->initializeTenancy($request);
|
||||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||||
return ($this->onFail)($e);
|
return ($this->onFail)($e, $request, $next);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue