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

[2.x] Restructure drivers config (#151)

* Restructure drivers config

* Apply fixes from StyleCI
This commit is contained in:
Samuel Štancl 2019-09-30 18:38:32 +02:00 committed by GitHub
parent 6cb7f27e6c
commit c965ca5c93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 25 deletions

View file

@ -189,8 +189,9 @@ class DatabaseManager
return DB::connection($this->getCentralConnectionName());
}
// todo this should not depend on the storage driver
public function getCentralConnectionName(): string
{
return $this->app['config']['tenancy.storage.db.connection'] ?? $this->originalDefaultConnectionName;
return $this->app['config']['tenancy.storage_drivers.db.connection'] ?? $this->originalDefaultConnectionName;
}
}