Contextualizing your Symfony2 Application with the Service Container

http://brentertainment.com/2012/02/28/contextualizing-your-symfony2-application-with-the-service-container/