1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 06:44:03 +00:00

Simplify Tenant contract (remove run method), move run logic to Tenancy, add generics

This commit is contained in:
Samuel Štancl 2024-03-01 08:42:11 +01:00
parent 32a063b834
commit af3b693dd1
9 changed files with 39 additions and 26 deletions

View file

@ -41,7 +41,7 @@ class TenantDump extends DumpCommand
return 1;
}
$tenant->run(fn () => parent::handle($connections, $dispatcher));
tenancy()->run($tenant, fn () => parent::handle($connections, $dispatcher));
return 0;
}