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

Tenant-specific connections, some work to get tests running

This commit is contained in:
Samuel Štancl 2019-09-15 17:44:26 +02:00
parent e25a01a997
commit c65b6839ff
13 changed files with 162 additions and 67 deletions

View file

@ -210,9 +210,10 @@ class TenantManager
protected function bootstrapFeatures(): self
{
foreach ($this->app['config']['tenancy.features'] as $feature) {
$this->app[$feature]->bootstrap($this);
}
// todo this doesn't work
// foreach ($this->app['config']['tenancy.features'] as $feature) {
// $this->app[$feature]->bootstrap($this);
// }
return $this;
}
@ -225,7 +226,7 @@ class TenantManager
*/
public function tenancyBootstrappers($except = []): array
{
return array_key_diff($this->app['config']['tenancy.bootstrappers'], $except);
return array_diff_key($this->app['config']['tenancy.bootstrappers'], $except);
}
public function shouldMigrateAfterCreation(): bool