class Repository implements ArrayAccess, Repository (View source)

Methods

void
__construct( array $items = array())

Create a new configuration repository.

bool
has( string $key)

Determine if the given configuration value exists.

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

Get the specified configuration value.

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

at line line 24
void __construct( array $items = array())

Create a new configuration repository.

Parameters

array $items

Return Value

void

at line line 35
bool has( string $key)

Determine if the given configuration value exists.

Parameters

string $key

Return Value

bool

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

Get the specified configuration value.

Parameters

string $key
mixed $default

Return Value

mixed

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

Set a given configuration value.

Parameters

array|string $key
mixed $value

Return Value

void

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

Prepend a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

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

Push a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

at line line 107
array all()

Get all of the configuration items for the application.

Return Value

array

at line line 118
bool offsetExists( string $key)

Determine if the given configuration option exists.

Parameters

string $key

Return Value

bool

at line line 129
mixed offsetGet( string $key)

Get a configuration option.

Parameters

string $key

Return Value

mixed

at line line 141
void offsetSet( string $key, mixed $value)

Set a configuration option.

Parameters

string $key
mixed $value

Return Value

void

at line line 152
void offsetUnset( string $key)

Unset a configuration option.

Parameters

string $key

Return Value

void