interface ConnectionRegistry (View source)

Contract covering connection for a Doctrine persistence layer ManagerRegistry class to implement.

Methods

string
getDefaultConnectionName()

Gets the default connection name.

object
getConnection(string $name = null)

Gets the named connection.

object[]
getConnections()

Gets an array of all registered connections.

string[]
getConnectionNames()

Gets all connection names.

Details

string getDefaultConnectionName()

Gets the default connection name.

Return Value

string The default connection name.

object getConnection(string $name = null)

Gets the named connection.

Parameters

string $name The connection name (null for the default one).

Return Value

object

object[] getConnections()

Gets an array of all registered connections.

Return Value

object[] An array of Connection instances.

string[] getConnectionNames()

Gets all connection names.

Return Value

string[] An array of connection names.