class Repository implements ArrayAccess, Repository (View source)

Properties

protected array $items

All of the configuration items.

Methods

void
__construct(array $items = [])

Create a new configuration repository.

bool
has(string $key)

Determine if the given configuration value exists.

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

Get the specified configuration value.

array
getMany(array $keys)

Get many configuration values.

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.

array
all()

Get all of the configuration items for the application.

bool
offsetExists(string $key)

Determine if the given configuration option exists.

mixed
offsetGet(string $key)

Get a configuration option.

void
offsetSet(string $key, mixed $value)

Set a configuration option.

void
offsetUnset(string $key)

Unset a configuration option.

Details

void __construct(array $items = [])

Create a new configuration repository.

Parameters

array $items

Return Value

void

bool has(string $key)

Determine if the given configuration value exists.

Parameters

string $key

Return Value

bool

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

Get the specified configuration value.

Parameters

array|string $key
mixed $default

Return Value

mixed

array getMany(array $keys)

Get many configuration values.

Parameters

array $keys

Return Value

array

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

Set a given configuration value.

Parameters

array|string $key
mixed $value

Return Value

void

void prepend(string $key, mixed $value)

Prepend a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

void push(string $key, mixed $value)

Push a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

array all()

Get all of the configuration items for the application.

Return Value

array

bool offsetExists(string $key)

Determine if the given configuration option exists.

Parameters

string $key

Return Value

bool

mixed offsetGet(string $key)

Get a configuration option.

Parameters

string $key

Return Value

mixed

void offsetSet(string $key, mixed $value)

Set a configuration option.

Parameters

string $key
mixed $value

Return Value

void

void offsetUnset(string $key)

Unset a configuration option.

Parameters

string $key

Return Value

void