helios-ag / FMElfinderBundle

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

Error after all steps (Symfony 5) #458

Closed CoolS2 closed 2 years ago

CoolS2 commented 2 years ago

ERROR:

There is no extension able to load the configuration for "elfinder" (in "config/packages/routing.yaml")

// composer.json

"helios-ag/fm-elfinder-bundle": "10.0.4"

// bundles.php

FM\ElfinderBundle\FMElfinderBundle::class => ['all' => true]

// routing.yaml

elfinder: resource: "@FMElfinderBundle/Resources/config/routing.yaml"

// security.yaml

access_control:
     - { path: ^/admin, roles: ROLE_ADMIN }
     - { path: ^/efconnect, role: ROLE_USER }
     - { path: ^/elfinder, role: ROLE_USER }

// assets.yaml

fm_elfinder: instances: default: locale: '%locale%' editor: ckeditor relative_path: false connector: roots:
uploads: driver: LocalFileSystem path: uploads upload_allow: ['image/png', 'image/jpg', 'image/jpeg'] upload_deny: ['all'] upload_max_size: 2M

CoolS2 commented 2 years ago

Resolved:

  1. Remove elfinder from routing.yaml
  2. Create file fm_elfinder.yaml and set configuration from guide
  3. Set locale parameter %kernel.default_locale%
helios-ag commented 2 years ago

Cool :)