Repository
class Repository implements ArrayAccess, Repository
Properties
protected array | $items | All of the configuration items. |
Methods
Create a new configuration repository.
Determine if the given configuration value exists.
Get the specified configuration value.
Set a given configuration value.
Prepend a value onto an array configuration value.
Push a value onto an array configuration value.
Get all of the configuration items for the application.
Determine if the given configuration option exists.
Get a configuration option.
Set a configuration option.
Unset a configuration option.
Details
at line 24
void
__construct(array $items = [])
Create a new configuration repository.
at line 35
bool
has(string $key)
Determine if the given configuration value exists.
at line 47
mixed
get(string $key, mixed $default = null)
Get the specified configuration value.
at line 59
void
set(array|string $key, mixed $value = null)
Set a given configuration value.
at line 75
void
prepend(string $key, mixed $value)
Prepend a value onto an array configuration value.
at line 91
void
push(string $key, mixed $value)
Push a value onto an array configuration value.
at line 105
array
all()
Get all of the configuration items for the application.
at line 116
bool
offsetExists(string $key)
Determine if the given configuration option exists.
at line 127
mixed
offsetGet(string $key)
Get a configuration option.
at line 139
void
offsetSet(string $key, mixed $value)
Set a configuration option.
at line 150
void
offsetUnset(string $key)
Unset a configuration option.