UserFrosting API

EnvironmentInfo

EnvironmentInfo Class.

Gets basic information about the application environment.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

$ci ContainerInterface
database() Get an array of key-value pairs containing basic information about the default database. string[]
canConnectToDatabase() Test whether a DB connection can be established. bool

Properties

Methods

database()

Get an array of key-value pairs containing basic information about the default database.

public static database( ) : string[]
Return values
string[]

the properties of this database.

canConnectToDatabase()

Test whether a DB connection can be established.

public static canConnectToDatabase( ) : bool
Return values
bool

true if the connection can be established, false otherwise.

Search results