class RegistryService extends BaseService

Store and retrieve arbitrary data. With the registry service you don't need to encode/decode your data. It's smart enough to know what you've provided and handle it appropriately.

$o = new \stdClass;
$o->foo = 'bar';
$svs->set('test', $o);
...
$svs->get('test')->bar;

Properties

protected $stack

Methods

set(string $key, mixed $value)

Set a registry value, override if it exists.

get($key)

No description

Details

at line 29
RegistryService set(string $key, mixed $value)

Set a registry value, override if it exists.

Parameters

string $key
mixed $value

Return Value

RegistryService

at line 48
get($key)

Parameters

$key