<?php use Symfony\Component\DependencyInjection\ContainerBuilder; $container = new ContainerBuilder(); $container-> register('foo', 'FooClass\\Foo')-> addArgument('foo<>&bar')-> addTag('foo"bar\\bar', array('foo' => 'foo"bar???')) ; return $container;
info at phpclasses dot org