Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File system framework improvements #219

Open
buskamuza opened this issue Jul 31, 2019 · 3 comments
Open

File system framework improvements #219

buskamuza opened this issue Jul 31, 2019 · 3 comments

Comments

@buskamuza
Copy link
Contributor

buskamuza commented Jul 31, 2019

  • Improve FS API
    • Eliminate duplicated libraries:
      • Deprecation of Magento\Framework\Filesystem\Io
      • Unify Ftp library instead of \Magento\Framework\System\Ftp and \Magento\Framework\Filesystem\Io\Ftp
    • Agree on API convenient for developers. Current API requires extra actions from the developer, and in some cases makes impossible to access files/folders in some context (e.g., it's necessary to create a directory and only then access necessary file).
    • Revisit the security measure limiting accessing files only in specific directory. Find an API that will be convenient and, in the same time, covers security requirements.
  • For cloud - do not write to local FS
  • API for media files to write to object storage
    • Logs (everything in "var") to be written to remote storage
    • Adapter for switching between local and remote storage
      • Config from env.php
      • Storages: S3
  • Builds on environment close to cloud
    • And composer-based
  • DevBox close to cloud env
@buskamuza buskamuza self-assigned this Jul 31, 2019
@buskamuza
Copy link
Contributor Author

Related issue - #111

@diazwatson
Copy link

Same applies Magento\Framework\Filesystem\Io\File
there are some methods available in:

Magento\Framework\Filesystem\Io\File

and some others in:

\Magento\Framework\Filesystem\Driver\File
  • Before remove I think we should merge them all into one.
  • What about 3rd party modules using Magento\Framework\Filesystem\Io?

@buskamuza
Copy link
Contributor Author

What about 3rd party modules using Magento\Framework\Filesystem\Io?
Everything should be deprecated first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants