Open kevincerro opened 4 years ago
Really cool. I like it but I would rather make it one more level of abstraction. This will make possible also to use FlySystem for storage. And it will also remove the hard dependency of Gaufrette.
Something like BlobStorage interface and pass concrete implementation to DataManager. Current implementation of file storage can be also moved to SessionBlobStorage implementation for example. This will save the many if - else and make the code looks cleaner.
@kevincerro @Warxcell @craue Nice feature. I use Gaufrette to store images on AWS because my PAAS does not have a filesystem. Does this feature will be merged ? Thanks,
I see a lot of work went into this already. And basically, I also like the idea of being able to save files in different ways. But @Warxcell has a good point on abstraction. Adding adapters for soft dependencies to various libraries would be nice. Tests would be needed as well.
Anyone up for working on this? @kevincerro, are you in the mood to resume?
This adds Gaufrette support to handle file uploads.
Some improvements can be made, feel free to suggest any necessary changes.
Solves #316