mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 06:34:04 +00:00
Merge branch 'master' into stein-j-readied-tenant
This commit is contained in:
commit
095c2e1380
55 changed files with 556 additions and 123 deletions
|
|
@ -28,7 +28,6 @@ class Tenancy
|
|||
/**
|
||||
* Initializes the tenant.
|
||||
* @param Tenant|int|string $tenant
|
||||
* @return void
|
||||
*/
|
||||
public function initialize($tenant): void
|
||||
{
|
||||
|
|
@ -107,9 +106,6 @@ class Tenancy
|
|||
/**
|
||||
* Run a callback in the central context.
|
||||
* Atomic, safely reverts to previous context.
|
||||
*
|
||||
* @param callable $callback
|
||||
* @return mixed
|
||||
*/
|
||||
public function central(callable $callback)
|
||||
{
|
||||
|
|
@ -133,7 +129,6 @@ class Tenancy
|
|||
* More performant than running $tenant->run() one by one.
|
||||
*
|
||||
* @param Tenant[]|\Traversable|string[]|null $tenants
|
||||
* @param callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public function runForMultiple($tenants, callable $callback, bool $withPending = null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue