mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:04:03 +00:00
pass $tenant as parameter
This commit is contained in:
parent
3575e0dcdf
commit
a17e5bcc41
1 changed files with 2 additions and 1 deletions
|
|
@ -149,11 +149,12 @@ class DatabaseManager
|
||||||
$manager = $this->getTenantDatabaseManager($tenant);
|
$manager = $this->getTenantDatabaseManager($tenant);
|
||||||
|
|
||||||
if ($this->app['config']['tenancy.queue_database_creation'] ?? false) {
|
if ($this->app['config']['tenancy.queue_database_creation'] ?? false) {
|
||||||
|
// todo the chain does not get $tenant
|
||||||
QueuedTenantDatabaseCreator::withChain($afterCreating)->dispatch($manager, $database);
|
QueuedTenantDatabaseCreator::withChain($afterCreating)->dispatch($manager, $database);
|
||||||
} else {
|
} else {
|
||||||
$manager->createDatabase($database);
|
$manager->createDatabase($database);
|
||||||
foreach ($afterCreating as $callback) {
|
foreach ($afterCreating as $callback) {
|
||||||
$callback();
|
$callback($tenant);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue