yii-filesystem
yii-filesystem copied to clipboard
Use our own interface
Currently the wrapper makes little sense because underlying implementation can not be replaced:
- Interface depends on interface FilesystemOperator from flysystem package:
FilesystemInterface extends FilesystemOperator. Solution: do not inherit anything from flysystem package. - It returns DirectoryListing that is specific to FlySystem: https://github.com/yiisoft/yii-filesystem/blob/master/src/Filesystem.php#L108. Solution: wrap it.
Should the functions be similar to flysystem ?
Yes. It should be used as a "driver".