1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

[2.x] Remove request helper from TenantManager (#144)

* Remove request from tenant manager

* Rollback
This commit is contained in:
Anton Komarev 2019-09-27 07:53:08 +03:00 committed by Samuel Štancl
parent cacf239801
commit 3d1ceadf34
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class InitializeTenancy
public function handle($request, Closure $next)
{
try {
tenancy()->init();
tenancy()->init($request->getHost());
} catch (TenantCouldNotBeIdentifiedException $e) {
($this->onFail)($e);
}