class Container implements RegisterInterface

Class Container. 이 클래스는 Key Value의 저장소를 제공합니다.

Properties

protected Arr $arrClass Register 에서 array 를 처리하기 위한 class 이름 기본으로 Illuminate\Support\Arr 을 사용한다.
protected array $items

Methods

__construct(Arr $arrClass)

No description

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
add(array|string $key, mixed $value)

add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀

void
prepend(string $key, mixed $value)

Prepend a value onto an array configuration value.

void
push(string $key, mixed $id, mixed $value = null)

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 47
__construct(Arr $arrClass)

Parameters

Arr $arrClass array class name

at line 59
bool has(string $key)

Determine if the given configuration value exists.

Parameters

string $key key

Return Value

bool

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

Get the specified configuration value.

Parameters

string $key key
mixed $default default value

Return Value

mixed

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

Set a given configuration value.

Parameters

array|string $key key
mixed $value value for setting

Return Value

void

at line 109
void add(array|string $key, mixed $value)

add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀

Parameters

array|string $key key
mixed $value value for adding

Return Value

void

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

Prepend a value onto an array configuration value.

Parameters

string $key key
mixed $value value for prepend

Return Value

void

at line 152
void push(string $key, mixed $id, mixed $value = null)

Push a value onto an array configuration value.

Parameters

string $key key
mixed $id pushed data's id
mixed $value pushed data's value

Return Value

void

at line 178
array all()

Get all of the configuration items for the application.

Return Value

array

at line 190
bool offsetExists(string $key)

Determine if the given configuration option exists.

Parameters

string $key key

Return Value

bool

at line 202
mixed offsetGet(string $key)

Get a configuration option.

Parameters

string $key key

Return Value

mixed

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

Set a configuration option.

Parameters

string $key key
mixed $value value for setting

Return Value

void

at line 227
void offsetUnset(string $key)

Unset a configuration option.

Parameters

string $key key

Return Value

void