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

Allow importing / exporting from named Flysystem filesystem #356

Closed
dkarlovi opened this issue Apr 27, 2022 · 1 comment
Closed

Allow importing / exporting from named Flysystem filesystem #356

dkarlovi opened this issue Apr 27, 2022 · 1 comment
Milestone

Comments

@dkarlovi
Copy link
Collaborator

dkarlovi commented Apr 27, 2022

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Branch? master

In #344 we introduced importing from asset, which allows the user to seamlessly pull assets from a remote storage before the import happens. Using an artifact does the same when exporting.

An extension to this could be to allow import/export using an arbitrary Pimcore filesystem (not just asset) by doing something like

bin/console data:import (or export) -d 123 -p'{"file":"storage+storage1://some/path.csv"}'

Here, storage+storage1:// means:

  1. storage+, use \Pimcore\Tool\Storage::getStorage
  2. storage1, pass that as the name to 1.
  3. use that storage instance to read / write the file some/path.csv directly to / from Flysystem
@dkarlovi dkarlovi added this to the 4.0.0 milestone Apr 27, 2022
@dkarlovi
Copy link
Collaborator Author

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

1 participant