helios-ag / FMElfinderBundle

:file_folder: ElFinderBundle provides ElFinder integration with TinyMCE, CKEditor, Summernote editors
MIT License
275 stars 128 forks source link

When using Flysystem driver with custom type you need to pass `options` key #528

Open JohJohan opened 2 months ago

JohJohan commented 2 months ago

Describe the bug I want to use the custom type for flysystem to use an already existing flysystem adapter but i didn't set options key as this is also not used only required for parameter.

To Reproduce You should have the following config:

fm_elfinder:
  instances:
    default:
      connector:
        roots:
          aws_s3:
            flysystem:
              type: custom
              adapter_service: 'app.flysystem.public_adapter'
#              options:

As you can see options is commented out

(OPTIONAL) Additional context You will get the following error: Warning: Undefined array key "options" on vendor/helios-ag/fm-elfinder-bundle/src/Configuration/ElFinderConfigurationReader.php:77

I would suggest setting default empty array for options so you dont run into this issue when you dont have options set.