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