mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:24: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 {
|
||||
tenancy()->init($request->getHost());
|
||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||
return ($this->onFail)($e);
|
||||
return ($this->onFail)($e, $request, $next);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class InitializeTenancyByRequestData
|
|||
try {
|
||||
$this->initializeTenancy($request);
|
||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||
return ($this->onFail)($e);
|
||||
return ($this->onFail)($e, $request, $next);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue