Skip to content

Commit 067d706

Browse files
committed
Add clear method to clear tenant in tenant Manager
1 parent dc31ce5 commit 067d706

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Manager.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ public function setTenant(Tenant $tenant)
3333
$this->tenant = $tenant;
3434
}
3535

36+
/**
37+
* Clear tenant.
38+
*
39+
* @return void
40+
*/
41+
public function clearTenant()
42+
{
43+
$this->tenant = null;
44+
}
45+
3646
/**
3747
* Check if tenant exists in request.
3848
*

0 commit comments

Comments
 (0)