com\setasign\SetaFramework\Database

DatabaseConnectionManager

File: /SetaFramework/src/Database/DatabaseConnectionManager.php

Class hierarchy

Summary

Properties

$connections


Methods

closeAllConnections()

Close all known connections. Like closeConnection() technically this method doesn't close the connections.

See

closeConnection()

public DatabaseConnectionManager::closeConnection (
string $identifier = 'default'
): void

Close the connection with the given identifier.

If the identifier is unknown nothing will happen.

Technically this method will NOT close the connection but just forget about the connection - if the instance is referenced somewhere else the connection will still remain but the next call to getConnection() will create a new connection.

Parameters
$identifier : string
 

getConnection()

public DatabaseConnectionManager::getConnection (
string $identifier = 'default'
): Database
Parameters
$identifier : string
 
Exceptions

Throws \com\setasign\SetaFramework\InvalidConfigurationException If identifier cannot be found or the configuration is invalid.

Throws ConnectionException

getConnectionConfig()

Parameters
$identifier : string