Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 390e433

Browse files
committed
Add config per instance according documentation of FMElfinderBundle
Hi guys, According doc presents in https://github.com/helios-ag/FMElfinderBundle#step-1-installation we have to add a level configuration for elfinder, without it we get an InvalidConfigurationException ```php [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized options "locale, editor, connector" under "fm_elfinder" ```
1 parent 4264f1f commit 390e433

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

bundles/media/adapters/elfinder.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ Installation
2222
2323
# app/config/config.yml
2424
fm_elfinder:
25-
locale: "%locale%"
26-
editor: ckeditor
27-
connector:
28-
roots:
29-
media:
30-
driver: cmf_media.adapter.elfinder.phpcr_driver
31-
path: "%cmf_media.persistence.phpcr.media_basepath%"
32-
upload_allow: ['all']
33-
upload_max_size: 2M
25+
instances:
26+
default:
27+
locale: "%locale%"
28+
editor: ckeditor
29+
connector:
30+
roots:
31+
media:
32+
driver: cmf_media.adapter.elfinder.phpcr_driver
33+
path: "%cmf_media.persistence.phpcr.media_basepath%"
34+
upload_allow: ['all']
35+
upload_max_size: 2M
3436
3537
.. code-block:: xml
3638

0 commit comments

Comments
 (0)