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.

array
getConnections()

Gets an array of all registered connections.

array
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

array getConnections()

Gets an array of all registered connections.

Return Value

array An array of Connection instances.

array getConnectionNames()

Gets all connection names.

Return Value

array An array of connection names.