class Config implements ArrayAccess

Methods

__construct(array $data)

No description

UriInterface
url()

No description

bool
inDebugMode()

No description

string|null
queueDriver()

No description

int|null
accessTokenLifetime(string $type)

How long a token of the given type stays valid, in seconds.

int|null
sessionLifetime()

How long a session may sit idle before it is discarded, in minutes.

bool|null
sessionCookieExpiresOnClose()

Whether session cookies should be discarded when the browser closes, rather than lasting for the lifetime of the token behind them.

bool
sessionConfigOverride()

Whether session lifetimes are pinned in `config.php`, and so cannot be changed from the admin panel.

bool
inMaintenanceMode()

No description

bool
inHighMaintenanceMode()

No description

bool
inLowMaintenanceMode()

No description

bool
inSafeMode()

No description

string
maintenanceMode()

No description

array|null
safeModeExtensions()

No description

string|null
fontawesomeSource()

No description

string|null
fontawesomeCdnUrl()

No description

string|null
fontawesomeKitUrl()

No description

mixed
offsetGet($offset)

No description

bool
offsetExists($offset)

No description

void
offsetSet($offset, $value)

No description

void
offsetUnset($offset)

No description

string
environment()

No description

array
defaults()

No description

Details

__construct(array $data)

Parameters

array $data

UriInterface url()

Return Value

UriInterface

bool inDebugMode()

Return Value

bool

string|null queueDriver()

Return Value

string|null

int|null accessTokenLifetime(string $type)

How long a token of the given type stays valid, in seconds.

Keyed by the type each token class declares, so a type added by an extension is configured the same way the ones in core are. Zero is meaningful — it means the token never expires — so it is only values that cannot be honoured at all (negative, or not a number) that are discarded here in favour of whatever comes next.

Parameters

string $type

Return Value

int|null

int|null sessionLifetime()

How long a session may sit idle before it is discarded, in minutes.

Return Value

int|null

bool|null sessionCookieExpiresOnClose()

Whether session cookies should be discarded when the browser closes, rather than lasting for the lifetime of the token behind them.

Return Value

bool|null

bool sessionConfigOverride()

Whether session lifetimes are pinned in `config.php`, and so cannot be changed from the admin panel.

Only the keys about how long sessions last count: `session.driver`, which picks where they are stored, leaves those controls with the admin panel.

Return Value

bool

bool inMaintenanceMode()

Return Value

bool

bool inHighMaintenanceMode()

Return Value

bool

bool inLowMaintenanceMode()

Return Value

bool

bool inSafeMode()

Return Value

bool

string maintenanceMode()

Return Value

string

array|null safeModeExtensions()

Return Value

array|null

string|null fontawesomeSource()

Return Value

string|null

string|null fontawesomeCdnUrl()

Return Value

string|null

string|null fontawesomeKitUrl()

Return Value

string|null

mixed offsetGet($offset)

Parameters

$offset

Return Value

mixed

bool offsetExists($offset)

Parameters

$offset

Return Value

bool

void offsetSet($offset, $value)

Parameters

$offset
$value

Return Value

void

void offsetUnset($offset)

Parameters

$offset

Return Value

void

string environment()

Return Value

string

protected array defaults()

Return Value

array