yii-filesystem icon indicating copy to clipboard operation
yii-filesystem copied to clipboard

Use our own interface

Open samdark opened this issue 5 years ago • 3 comments

Currently the wrapper makes little sense because underlying implementation can not be replaced:

  1. Interface depends on interface FilesystemOperator from flysystem package: FilesystemInterface extends FilesystemOperator. Solution: do not inherit anything from flysystem package.
  2. It returns DirectoryListing that is specific to FlySystem: https://github.com/yiisoft/yii-filesystem/blob/master/src/Filesystem.php#L108. Solution: wrap it.

samdark avatar Mar 30 '20 09:03 samdark

Should the functions be similar to flysystem ?

demonking avatar Sep 01 '20 21:09 demonking

Yes. It should be used as a "driver".

samdark avatar Sep 01 '20 22:09 samdark