class Liaison (View source)

Class Liaison.

\@package Concrete\Core\Config\Repository

Properties

protected Repository $repository
protected string $default_namespace Default Namespace.

Methods

__construct(Repository $repository, string $default_namespace)

Create a new configuration repository.

bool
has(string $key)

No description

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

No description

bool
save(string $key, mixed $value)

No description

set(string $key, mixed $value)

No description

clear($key)

No description

getRepository()

No description

setRepository(Repository $repository)

No description

string
getDefaultNamespace()

No description

setDefaultNamespace(string $default_namespace)

No description

mixed
withKey(string $key, mixed $value, callable $callable)

Execute a callable using a specific key value.

string
transformKey($key)

No description

Details

__construct(Repository $repository, string $default_namespace)

Create a new configuration repository.

Parameters

Repository $repository
string $default_namespace

bool has(string $key)

Parameters

string $key

Return Value

bool

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

Parameters

string $key
mixed $default

Return Value

mixed

bool save(string $key, mixed $value)

Parameters

string $key
mixed $value

Return Value

bool

set(string $key, mixed $value)

Parameters

string $key
mixed $value

clear($key)

Parameters

$key

Repository getRepository()

Return Value

Repository

setRepository(Repository $repository)

Parameters

Repository $repository

string getDefaultNamespace()

Return Value

string

setDefaultNamespace(string $default_namespace)

Parameters

string $default_namespace

mixed withKey(string $key, mixed $value, callable $callable)

Execute a callable using a specific key value.

Parameters

string $key
mixed $value
callable $callable

Return Value

mixed returns the result of $callable

protected string transformKey($key)

Parameters

$key

Return Value

string