Properties

$registrars

$registrars : array

An optional array of classes that will act as Registrars for rapidly setting config class properties.

Type

array

$baseURL

$baseURL : 

Type

$indexPage

$indexPage : 

Type

$uriProtocol

$uriProtocol : 

Type

$defaultLocale

$defaultLocale : 

Type

$negotiateLocale

$negotiateLocale : 

Type

$supportedLocales

$supportedLocales : 

Type

$appTimezone

$appTimezone : 

Type

$charset

$charset : 

Type

$forceGlobalSecureRequests

$forceGlobalSecureRequests : 

Type

$sessionDriver

$sessionDriver : 

Type

$sessionCookieName

$sessionCookieName : 

Type

$sessionExpiration

$sessionExpiration : 

Type

$sessionSavePath

$sessionSavePath : 

Type

$sessionMatchIP

$sessionMatchIP : 

Type

$sessionTimeToUpdate

$sessionTimeToUpdate : 

Type

$sessionRegenerateDestroy

$sessionRegenerateDestroy : 

Type

$cookiePrefix

$cookiePrefix : 

Type

$cookieDomain

$cookieDomain : 

Type

$cookiePath

$cookiePath : 

Type

$cookieSecure

$cookieSecure : 

Type

$cookieHTTPOnly

$cookieHTTPOnly : 

Type

$proxyIPs

$proxyIPs : 

Type

$CSRFTokenName

$CSRFTokenName : 

Type

$CSRFCookieName

$CSRFCookieName : 

Type

$CSRFExpire

$CSRFExpire : 

Type

$CSRFRegenerate

$CSRFRegenerate : 

Type

$CSRFRedirect

$CSRFRedirect : 

Type

$CSPEnabled

$CSPEnabled : 

Type

$salt

$salt : 

Type

$didDiscovery

$didDiscovery : boolean

Has module discovery happened yet?

Type

boolean

$moduleConfig

$moduleConfig : \CodeIgniter\Config\type

The modules configuration.

Type

\CodeIgniter\Config\type

Methods

__construct()

__construct() 

Will attempt to get environment variables with names that match the properties of the child class.

The "shortPrefix" is the lowercase-only config class name.

initEnvValue()

initEnvValue(  $property, string  $name, string  $prefix, string  $shortPrefix) : mixed

Initialization an environment-specific configuration setting

Parameters

$property
string $name
string $prefix
string $shortPrefix

Returns

mixed

getEnvValue()

getEnvValue(string  $property, string  $prefix, string  $shortPrefix) : mixed

Retrieve an environment-specific configuration setting

Parameters

string $property
string $prefix
string $shortPrefix

Returns

mixed

registerProperties()

registerProperties() 

Provides external libraries a simple way to register one or more options into a config file.

Throws

\ReflectionException