interface Repository

Methods

bool
has(string $key)

Determine if the given configuration value exists.

mixed
get(array|string $key, mixed $default = null)

Get the specified configuration value.

string
string(string $key, mixed $default = null)

Get the specified string configuration value.

int
integer(string $key, mixed $default = null)

Get the specified integer configuration value.

float
float(string $key, mixed $default = null)

Get the specified float configuration value.

bool
boolean(string $key, mixed $default = null)

Get the specified boolean configuration value.

array
array(string $key, mixed $default = null)

Get the specified array configuration value.

array
all()

Get all of the configuration items for the application.

void
set(array|string $key, mixed $value = null)

Set a given configuration value.

void
prepend(string $key, mixed $value)

Prepend a value onto an array configuration value.

void
push(string $key, mixed $value)

Push a value onto an array configuration value.

Details

at line 15
bool has(string $key)

Determine if the given configuration value exists.

Parameters

string $key

Return Value

bool

at line 20
mixed get(array|string $key, mixed $default = null)

Get the specified configuration value.

Parameters

array|string $key
mixed $default

Return Value

mixed

at line 28
string string(string $key, mixed $default = null)

Get the specified string configuration value.

Parameters

string $key
mixed $default

Return Value

string

Exceptions

InvalidArgumentException

at line 36
int integer(string $key, mixed $default = null)

Get the specified integer configuration value.

Parameters

string $key
mixed $default

Return Value

int

Exceptions

InvalidArgumentException

at line 44
float float(string $key, mixed $default = null)

Get the specified float configuration value.

Parameters

string $key
mixed $default

Return Value

float

Exceptions

InvalidArgumentException

at line 52
bool boolean(string $key, mixed $default = null)

Get the specified boolean configuration value.

Parameters

string $key
mixed $default

Return Value

bool

Exceptions

InvalidArgumentException

at line 61
array array(string $key, mixed $default = null)

Get the specified array configuration value.

Parameters

string $key
mixed $default

Return Value

array

Exceptions

InvalidArgumentException

at line 66
array all()

Get all of the configuration items for the application.

Return Value

array

at line 75
void set(array|string $key, mixed $value = null)

Set a given configuration value.

Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.

Parameters

array|string $key
mixed $value

Return Value

void

at line 84
void prepend(string $key, mixed $value)

Prepend a value onto an array configuration value.

Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.

Parameters

string $key
mixed $value

Return Value

void

at line 93
void push(string $key, mixed $value)

Push a value onto an array configuration value.

Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.

Parameters

string $key
mixed $value

Return Value

void