Container
class Container implements RegisterInterface
Class Container. 이 클래스는 Key Value의 저장소를 제공합니다.
Properties
protected Arr | $arrClass | Register 에서 array 를 처리하기 위한 class 이름 기본으로 Illuminate\Support\Arr 을 사용한다. | |
protected array | $items |
Methods
No description
Determine if the given configuration value exists.
Get the specified configuration value.
Set a given configuration value.
add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀
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 47
__construct(Arr $arrClass)
at line 59
bool
has(string $key)
Determine if the given configuration value exists.
at line 73
mixed
get(string $key, mixed $default = null)
Get the specified configuration value.
at line 87
void
set(array|string $key, mixed $value = null)
Set a given configuration value.
at line 109
void
add(array|string $key, mixed $value)
add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀
at line 124
void
prepend(string $key, mixed $value)
Prepend a value onto an array configuration value.
at line 152
void
push(string $key, mixed $id, mixed $value = null)
Push a value onto an array configuration value.
at line 178
array
all()
Get all of the configuration items for the application.
at line 190
bool
offsetExists(string $key)
Determine if the given configuration option exists.
at line 202
mixed
offsetGet(string $key)
Get a configuration option.
at line 215
void
offsetSet(string $key, mixed $value)
Set a configuration option.
at line 227
void
offsetUnset(string $key)
Unset a configuration option.