Skip to content

Commit

Permalink
Merge pull request liip#1522 from gregberger/flysystem-documentation-…
Browse files Browse the repository at this point in the history
…improvement

Update flysystem.rst
  • Loading branch information
dbu authored Jul 26, 2023
2 parents bbb5d96 + 31fdb82 commit 3c0f20b
Showing 1 changed file with 24 additions and 0 deletions.
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

0 comments on commit 3c0f20b

Please sign in to comment.