Simple Symfony2 like Service locator