mediatekformation

ConnectionRegistry

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

Table of Contents

getConnection()  : object
Gets the named connection.
getConnectionNames()  : array<string|int, string>
Gets all connection names.
getConnections()  : array<string|int, object>
Gets an array of all registered connections.
getDefaultConnectionName()  : string
Gets the default connection name.

Methods

getConnection()

Gets the named connection.

public getConnection([string $name = null ]) : object
Parameters
$name : string = null

The connection name (null for the default one).

Return values
object

getConnectionNames()

Gets all connection names.

public getConnectionNames() : array<string|int, string>
Return values
array<string|int, string>

An array of connection names.

getConnections()

Gets an array of all registered connections.

public getConnections() : array<string|int, object>
Return values
array<string|int, object>

An array of Connection instances.

getDefaultConnectionName()

Gets the default connection name.

public getDefaultConnectionName() : string
Return values
string

The default connection name.

Search results