\Ceo\ServicesRegistryService

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;

Summary

Methods
Properties
Constants
set()
get()
No public properties found
No constants found
No protected methods found
$stack
N/A
encodeValue()
decodeValue()
No private properties found
N/A

Properties

$stack

$stack : 

Type

Methods

set()

set(string  $key, mixed  $value) : self

Set a registry value, override if it exists.

Parameters

string $key
mixed $value

Returns

self

get()

get(  $key) 

Parameters

$key

encodeValue()

encodeValue(mixed  $v) 

Encode value as scalar, array or object

Parameters

mixed $v

decodeValue()

decodeValue(string  $v) : mixed

Decode serialized value

Parameters

string $v

Returns

mixed