ServiceProvider class modified to meet new Silex requirements