From 31fdb820fc17b4aa4b13350a5bbf1e4225a481c6 Mon Sep 17 00:00:00 2001 From: Greg Berger Date: Tue, 25 Jul 2023 13:35:01 +0200 Subject: [PATCH] Update flysystem.rst Add configuration snippet for using The League FlysytemBundle as there's a small subtility in the service alias --- Resources/doc/data-loader/flysystem.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Resources/doc/data-loader/flysystem.rst b/Resources/doc/data-loader/flysystem.rst index 091afe06..4d0e47d0 100644 --- a/Resources/doc/data-loader/flysystem.rst +++ b/Resources/doc/data-loader/flysystem.rst @@ -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