1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:04:03 +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);
}

View file

@ -130,7 +130,7 @@ class TenantManager
/**
* Find tenant by domain & initialize tenancy.
*
* @param string $domain
* @param string|null $domain
* @return self
*/
public function init(string $domain = null): self