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:
parent
cacf239801
commit
3d1ceadf34
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class InitializeTenancy
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
tenancy()->init();
|
tenancy()->init($request->getHost());
|
||||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||||
($this->onFail)($e);
|
($this->onFail)($e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ class TenantManager
|
||||||
/**
|
/**
|
||||||
* Find tenant by domain & initialize tenancy.
|
* Find tenant by domain & initialize tenancy.
|
||||||
*
|
*
|
||||||
* @param string $domain
|
* @param string|null $domain
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function init(string $domain = null): self
|
public function init(string $domain = null): self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue