Liaison
class Liaison extends Liaison (View source)
A repository stand-in that allows for accessing a site's config
Properties
protected Repository | $repository | from Liaison | |
protected string | $default_namespace | Default Namespace. |
from Liaison |
protected | $site |
Methods
mixed
withKey(string $key, mixed $value, callable $callable)
Execute a callable using a specific key value.
from
Liaison
string
transformKey($key)
Prepend the "site" config group and the current site handle
Details
__construct(Repository $repository, Site $site)
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
Repository
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.
protected string
transformKey($key)
Prepend the "site" config group and the current site handle