Documentation

ConfigurationInterface

Table of Contents

get()  : mixed|null
Return the configuration value at the given key, or $default if no such config exists
merge()  : void
Merge an existing array into the current configuration
replace()  : void
Replace the entire array with something else
set()  : void
Set the configuration value at the given key

Methods

get()

Return the configuration value at the given key, or $default if no such config exists

public get([string|null $key = null ][, mixed|null $default = null ]) : mixed|null

The key can be a string or a slash-delimited path to a nested value

Parameters
$key : string|null = null
$default : mixed|null = null
Return values
mixed|null

merge()

Merge an existing array into the current configuration

public merge([array<string, mixed> $config = [] ]) : void
Parameters
$config : array<string, mixed> = []
Return values
void

replace()

Replace the entire array with something else

public replace([array<string, mixed> $config = [] ]) : void
Parameters
$config : array<string, mixed> = []
Return values
void

set()

Set the configuration value at the given key

public set(string $key[, mixed|null $value = null ]) : void

The key can be a string or a slash-delimited path to a nested value

Parameters
$key : string
$value : mixed|null = null
Return values
void

Search results