Repository
interface Repository
Methods
Determine if the given configuration value exists.
Get the specified configuration value.
Get the specified string configuration value.
Get the specified integer configuration value.
Get the specified float configuration value.
Get the specified boolean configuration value.
Get the specified array configuration value.
Get all of the configuration items for the application.
Set a given configuration value.
Prepend a value onto an array configuration value.
Push a value onto an array configuration value.
Details
at line 16
bool
has(string $key)
Determine if the given configuration value exists.
at line 21
mixed
get(array|string $key, mixed $default = null)
Get the specified configuration value.
at line 29
string
string(string $key, mixed $default = null)
Get the specified string configuration value.
at line 37
int
integer(string $key, mixed $default = null)
Get the specified integer configuration value.
at line 45
float
float(string $key, mixed $default = null)
Get the specified float configuration value.
at line 53
bool
boolean(string $key, mixed $default = null)
Get the specified boolean configuration value.
at line 62
array
array(string $key, mixed $default = null)
Get the specified array configuration value.
at line 69
array
all()
Get all of the configuration items for the application.
at line 77
void
set(array|string $key, mixed $value = null)
Set a given configuration value.
The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.
at line 86
void
prepend(string $key, mixed $value)
Prepend a value onto an array configuration value.
The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.
at line 95
void
push(string $key, mixed $value)
Push a value onto an array configuration value.
The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.