final class Configured

Methods

static string|null
string(string $key, string|null $default = null)

Get a configured string value, treating empty or non-string values as missing.

static array
missing(array $keys)

Get the given configuration keys that do not hold a usable value.

Details

at line 18
static string|null string(string $key, string|null $default = null)

Get a configured string value, treating empty or non-string values as missing.

Unlike the config repository's string() method, this never throws on an unexpected type, since diagnostics must be able to inspect misconfigured applications without failing before they can report.

Parameters

string $key
string|null $default

Return Value

string|null

at line 33
static array missing(array $keys)

Get the given configuration keys that do not hold a usable value.

Null values, blank strings, and empty arrays are treated as missing.

Parameters

array $keys

Return Value

array