1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-06-21 11:54:04 +00:00

Tenant DB manager database() -> connection()

This commit is contained in:
Samuel Štancl 2024-09-12 18:34:45 +02:00
parent f3e01c1581
commit 0fc105487b
13 changed files with 60 additions and 60 deletions

View file

@ -14,7 +14,7 @@ abstract class TenantDatabaseManager implements StatefulTenantDatabaseManager
/** The database connection to the server. */
protected string $connection;
public function database(): Connection
public function connection(): Connection
{
if (! isset($this->connection)) {
throw new NoConnectionSetException(static::class);