Using the factory method in the silex provider