made file adapter registerable and extended the base silex application to do that