services()->defaults()->public(); $s->set('decorated', stdClass::class); $s->set(null, StdClassDecorator::class) ->decorate('decorated', 'decorator42') ->args([ref('decorator42')]); $s->set('listener_aggregator', FooClass::class)->public()->args([tagged_iterator('listener')]); $s->set(null, stdClass::class)->tag('listener'); };