abstract class TenantDatabaseManager implements StatefulTenantDatabaseManager (View source)

Properties

protected string $connection

The database connection to the server.

Methods

Connection
database()

Get the DB connection used by the tenant database manager.

void
setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

array
makeConnectionConfig(array $baseConfig, string $databaseName)

Construct a DB connection config array.

Details

Connection database()

Get the DB connection used by the tenant database manager.

Return Value

Connection

void setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

Parameters

string $connection

Return Value

void

Exceptions

NoConnectionSetException

array makeConnectionConfig(array $baseConfig, string $databaseName)

Construct a DB connection config array.

Parameters

array $baseConfig
string $databaseName

Return Value

array