Imagine ServiceProvider for Silex.