$stack
$stack :
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;