1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:44:03 +00:00

Pass $request and $next to onFail closures

This commit is contained in:
Samuel Štancl 2020-04-06 15:15:52 +02:00
parent 4f5ef6fc56
commit b441d789b6
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class InitializeTenancyByRequestData
try {
$this->initializeTenancy($request);
} catch (TenantCouldNotBeIdentifiedException $e) {
return ($this->onFail)($e);
return ($this->onFail)($e, $request, $next);
}
}