Alexandre Sinício - 2018-04-17 20:39:01 -
In reply to message 1 from Massimo Gagliardi
Hi Massimo,
The idea of this interface is that instead of hard-coding the procedures to store/retrieve files from the filesystem or cloud-storage, you delegate this responsibility to a specialized class. This way, your `user` class (for example) doesn't need to know where/how files are stored: you just say "hey AbstractStorage, do your magic and store this file for me". The same when retrieving files.
The example 01 (`01-adding-file.php`) should work fine out-of-the-box if you keep the folder structure.
If it is not working, could you tell me what errors/messages are being fired?
Thanks,