ConnectionRegistry
in
Contract covering connection for a Doctrine persistence layer ManagerRegistry class to implement.
Table of Contents
Methods
- getConnection() : object
- Gets the named connection.
- getConnectionNames() : array<string, string>
- Gets all connection names.
- getConnections() : array<string, object>
- Gets an array of all registered connections.
- getDefaultConnectionName() : string
- Gets the default connection name.
Methods
getConnection()
Gets the named connection.
public
getConnection([string|null $name = null ]) : object
Parameters
- $name : string|null = null
-
The connection name (null for the default one).
Return values
objectgetConnectionNames()
Gets all connection names.
public
getConnectionNames() : array<string, string>
Return values
array<string, string> —An array of connection names.
getConnections()
Gets an array of all registered connections.
public
getConnections() : array<string, object>
Return values
array<string, object> —An array of Connection instances.
getDefaultConnectionName()
Gets the default connection name.
public
getDefaultConnectionName() : string
Return values
string —The default connection name.