Documentation

DatabaseConnectionManager
in package

A class to manage database connections as true singletons across the application.

This class should not be used directly - always use DatabaseTrait::getDb() instead.

Table of Contents

Properties

$config  : TiqConfig|null
$instance  : PgSQL|null

Methods

getConfig()  : TiqConfig
Gets the application configuration
getInstance()  : PgSQL
Get the singleton database instance
reset()  : void
For testing purposes - allows resetting the connection
__construct()  : mixed
Private constructor to prevent instantiation

Properties

Methods

getConfig()

Gets the application configuration

public static getConfig() : TiqConfig
Return values
TiqConfig

        
On this page

Search results