mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
[4.x] Make TenantDump work when called outside the tenant context (#1015)
* Run TenantDump as passed tenant * Fix code style (php-cs-fixer) * Fix `tenants:dump` tests * Update dump command test * Remove redundant `tenant-schema.dump` unlinking * Delete duplicate test * Update test name Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
This commit is contained in:
parent
9520cbc811
commit
cb7567a88a
2 changed files with 20 additions and 17 deletions
|
|
@ -41,7 +41,7 @@ class TenantDump extends DumpCommand
|
|||
return 1;
|
||||
}
|
||||
|
||||
parent::handle($connections, $dispatcher);
|
||||
$tenant->run(fn () => parent::handle($connections, $dispatcher));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue