class AppInitializer (View source)

Class AppInitializer

Initializes the application by checking dependencies, loading configuration, setting locale, connecting to the database, and optionally authenticating the user.

Methods

__construct(bool $authenticate)

AppInitializer constructor.

PDO
getDb()

Gets the database connection.

array
getDebugQueries()

No description

Details

__construct(bool $authenticate)

AppInitializer constructor.

Parameters

bool $authenticate

Whether to authenticate the user

PDO getDb()

Gets the database connection.

Return Value

PDO

The database connection

array getDebugQueries()

No description

Return Value

array