symfony/symfony — pull request #3786 by drak (2012-04-04 19:35:15+00:00)
Title: [DependencyInjection] Return object instance on set()

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -

This allows convenience shortcuts such as

$foo = $container->set('foo', new Foo());