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)

No description

Parameters

string $key

Return Value

bool

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

No description

Parameters

string $key
mixed $default

Return Value

mixed

bool save(string $key, mixed $value)

No description

Parameters

string $key
mixed $value

Return Value

bool

set(string $key, mixed $value)

No description

Parameters

string $key
mixed $value

clear($key)

No description

Parameters

$key

Repository getRepository()

No description

Return Value

Repository

setRepository(Repository $repository)

No description

Parameters

Repository $repository

string getDefaultNamespace()

No description

Return Value

string

setDefaultNamespace(string $default_namespace)

No description

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)

No description

Parameters

$key

Return Value

string