Fixed typo and logic in Silex provider