interface ConnectionResolverInterface (View source)

Methods

connection(string $name = null)

Get a database connection instance.

string
getDefaultConnection()

Get the default connection name.

void
setDefaultConnection(string $name)

Set the default connection name.

Details

Connection connection(string $name = null)

Get a database connection instance.

Parameters

string $name

Return Value

Connection

string getDefaultConnection()

Get the default connection name.

Return Value

string

void setDefaultConnection(string $name)

Set the default connection name.

Parameters

string $name

Return Value

void