refactoring to replace Gaufrette with Symfony Filesystem