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

Update flysystem.rst #1522

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions Resources/doc/data-loader/flysystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,30 @@ Using `OneupFlysystemBundle`_, a basic configuration might look as follows:
profile_photos:
adapter: profile_photos


Using `The League FlysystemBundle`_:

.. code-block:: yaml

# app/config/config.yml

liip_imagine:
loaders:
profile_photos:
flysystem:
#⚠️ do not use the full flysystem service alias (which would be `flysystem.adapter.profile_photos.storage`)
filesystem_service: 'profile_photos.storage'
data_loader: profile_photos

flysystem:
storages:
profile_photos.storage:
adapter: 'local'
options:
directory: "path/to/profile/photos"



.. _`Flysystem`: https://github.com/thephpleague/flysystem
.. _`OneupFlysystemBundle`: https://github.com/1up-lab/OneupFlysystemBundle
.. _`The League FlysystemBundle`: https://github.com/thephpleague/flysystem-bundle