Adjusting lib to use with Silex 2.x (dev-master)