<?php use Symfony\Component\DependencyInjection\ContainerBuilder; $container = new ContainerBuilder(); $container ->register('foo', 'FooClass\\Foo') ->setDecoratedService('bar', 'bar.woozy') ; return $container;
info at phpclasses dot org